public abstract class AbstractBinaryOutput extends java.io.OutputStream implements BinaryOutput
SEEK_CUR, SEEK_END, SEEK_SET| Constructor and Description |
|---|
AbstractBinaryOutput() |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes the stream.
|
void |
closeWrite()
Closes the file.
|
void |
flush()
Flushes the output.
|
java.io.OutputStream |
getOutputStream()
Returns self as the output stream.
|
long |
getPosition()
Tells the position in the stream
|
java.lang.String |
getResourceType() |
boolean |
isEOF()
Returns false always for output streams
|
void |
print(char v)
Prints a string to a file.
|
void |
print(java.lang.String v)
Prints a string to a file.
|
long |
seek(long offset,
int whence)
Seek according to offset and whence.
|
boolean |
setPosition(long offset)
Sets the position.
|
Value |
stat()
Returns an array filled with stat information.
|
int |
write(java.io.InputStream is,
int length)
Writes to a stream.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitwritepublic java.io.OutputStream getOutputStream()
getOutputStream in interface BinaryOutputpublic int write(java.io.InputStream is,
int length)
write in interface BinaryOutputpublic void print(char v)
throws java.io.IOException
print in interface BinaryOutputjava.io.IOExceptionpublic void print(java.lang.String v)
throws java.io.IOException
print in interface BinaryOutputjava.io.IOExceptionpublic void flush()
throws java.io.IOException
flush in interface BinaryOutputflush in interface java.io.Flushableflush in class java.io.OutputStreamjava.io.IOExceptionpublic void closeWrite()
closeWrite in interface BinaryOutputpublic void close()
close in interface BinaryOutputclose in interface BinaryStreamclose in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in class java.io.OutputStreampublic boolean isEOF()
isEOF in interface BinaryStreampublic long getPosition()
getPosition in interface BinaryStreampublic boolean setPosition(long offset)
setPosition in interface BinaryStreampublic long seek(long offset,
int whence)
BinaryStreamseek in interface BinaryStreampublic java.lang.String getResourceType()
public Value stat()
BinaryStreamstat in interface BinaryStream