Qizx/open API

net.axyana.qizxopen.util
Class ByteOutputStream

java.lang.Object
  extended bynet.axyana.qizxopen.util.ByteOutputBase
      extended bynet.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

Constructor Summary
ByteOutputStream(java.io.File file)
           
ByteOutputStream(java.io.OutputStream out)
           
 
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
 

Constructor Detail

ByteOutputStream

public ByteOutputStream(java.io.File file)
                 throws java.io.FileNotFoundException

ByteOutputStream

public ByteOutputStream(java.io.OutputStream out)
Method Detail

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

© 2005 Axyana Software