Package org.basex.io.out
Class ServerOutput
java.lang.Object
java.io.OutputStream
org.basex.io.out.ServerOutput
- All Implemented Interfaces:
Closeable,Flushable,AutoCloseable
This server-side class wraps an
InputStream referenced by a database client.
The incoming bytes are encoded:
0x00and0xFFare prefixed with0xFF0x00is sent to indicate the end of a stream
- Author:
- BaseX Team 2005-21, BSD License, Christian Gruen
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.io.OutputStream
nullOutputStream, write, write
-
Constructor Details
-
ServerOutput
Constructor.- Parameters:
os- output stream to be wrapped
-
-
Method Details
-
write
- Specified by:
writein classOutputStream- Throws:
IOException
-
flush
- Specified by:
flushin interfaceFlushable- Overrides:
flushin classOutputStream- Throws:
IOException
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classOutputStream- Throws:
IOException
-