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, wait
write
public java.io.OutputStream getOutputStream()
getOutputStream
in interface BinaryOutput
public int write(java.io.InputStream is, int length)
write
in interface BinaryOutput
public void print(char v) throws java.io.IOException
print
in interface BinaryOutput
java.io.IOException
public void print(java.lang.String v) throws java.io.IOException
print
in interface BinaryOutput
java.io.IOException
public void flush() throws java.io.IOException
flush
in interface BinaryOutput
flush
in interface java.io.Flushable
flush
in class java.io.OutputStream
java.io.IOException
public void closeWrite()
closeWrite
in interface BinaryOutput
public void close()
close
in interface BinaryOutput
close
in interface BinaryStream
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
close
in class java.io.OutputStream
public boolean isEOF()
isEOF
in interface BinaryStream
public long getPosition()
getPosition
in interface BinaryStream
public boolean setPosition(long offset)
setPosition
in interface BinaryStream
public long seek(long offset, int whence)
BinaryStream
seek
in interface BinaryStream
public java.lang.String getResourceType()
public Value stat()
BinaryStream
stat
in interface BinaryStream