|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javaFlacEncoder.FLACFileOutputStream
public class FLACFileOutputStream
This class provides basic file output for writing from a FLACEncoder.
Constructor Summary | |
---|---|
FLACFileOutputStream(java.lang.String filename)
Constructor. |
Method Summary | |
---|---|
boolean |
canSeek()
Test whether this stream is seekable. |
long |
getPos()
Get the current write position of this stream. |
boolean |
isValid()
Get the status of this file stream(whether the file was successfully open or not). |
long |
seek(long pos)
Attempt to seek to the given location within this stream. |
long |
size()
Get the number of bytes that have been written in length! This takes into account seeking to different portions. |
void |
write(byte data)
Write a byte to this stream. |
int |
write(byte[] data,
int offset,
int count)
Write the given number of bytes from the byte array. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FLACFileOutputStream(java.lang.String filename)
filename
- file to connect to output stream.Method Detail |
---|
public boolean isValid()
public long seek(long pos)
seek
in interface FLACOutputStream
pos
- target position to seek to.
public void write(byte data) throws java.io.IOException
write
in interface FLACOutputStream
data
- byte to write.
java.io.IOException
- IOException will be raised if an error occurred while
writing.public int write(byte[] data, int offset, int count) throws java.io.IOException
write
in interface FLACOutputStream
data
- array containing bytes to be written.offset
- start index of array to begin reading from.count
- number of bytes to write.
java.io.IOException
- IOException upon a write error.public long size()
size
in interface FLACOutputStream
public boolean canSeek()
canSeek
in interface FLACOutputStream
public long getPos()
getPos
in interface FLACOutputStream
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |