org.basex.io.out
Class EncodingOutput
java.lang.Object
java.io.OutputStream
org.basex.io.out.EncodingOutput
- All Implemented Interfaces:
- java.io.Closeable, java.io.Flushable
public final class EncodingOutput
- extends java.io.OutputStream
This server-side class wraps an InputStream
filled by a database
client. The incoming bytes are encoded:
0x00
and 0xFF
are prefixed with 0xFF
0x00
is sent to indicate the end of a stream
- Author:
- BaseX Team 2005-12, BSD License, Christian Gruen
Constructor Summary |
EncodingOutput(java.io.OutputStream out)
Constructor. |
Methods inherited from class java.io.OutputStream |
write, write |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EncodingOutput
public EncodingOutput(java.io.OutputStream out)
- Constructor.
- Parameters:
out
- output stream to be wrapped
write
public void write(int b)
throws java.io.IOException
- Specified by:
write
in class java.io.OutputStream
- Throws:
java.io.IOException
flush
public void flush()
throws java.io.IOException
- Specified by:
flush
in interface java.io.Flushable
- Overrides:
flush
in class java.io.OutputStream
- Throws:
java.io.IOException
close
public void close()
throws java.io.IOException
- Specified by:
close
in interface java.io.Closeable
- Overrides:
close
in class java.io.OutputStream
- Throws:
java.io.IOException