net.axyana.qizxopen.util
Class ByteOutputStream
java.lang.Object
net.axyana.qizxopen.util.ByteOutputBase
net.axyana.qizxopen.util.ByteOutputStream
- All Implemented Interfaces:
- ByteOutput, java.io.Serializable
- public class ByteOutputStream
- extends ByteOutputBase
OutputByteStream writing to a standard OutputStream.
- See Also:
- Serialized Form
Method Summary |
void |
close()
|
void |
flush()
|
void |
syncClose()
Closes and synchronizes the file on disk.
|
Methods inherited from class net.axyana.qizxopen.util.ByteOutputBase |
encodeInt, encodeLong, flushMark, putByte, putByte, putBytes, putBytes, putChars, putChars, putDouble, putString, putVint, putVlong |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ByteOutputStream
public ByteOutputStream(java.io.File file)
throws java.io.FileNotFoundException
ByteOutputStream
public ByteOutputStream(java.io.OutputStream out)
flush
public void flush()
throws java.io.IOException
- Overrides:
flush
in class ByteOutputBase
- Throws:
java.io.IOException
close
public void close()
throws java.io.IOException
- Throws:
java.io.IOException
syncClose
public void syncClose()
throws java.io.IOException
- Closes and synchronizes the file on disk.
CAUTION: assumes the underlying OutputStream is a FileOutputStream.
- Throws:
java.io.IOException