Package org.basex.io.in
Class ServerInput
java.lang.Object
java.io.InputStream
org.basex.io.in.ServerInput
- All Implemented Interfaces:
Closeable,AutoCloseable
This server-side class wraps an
InputStream reference by a database client.
The incoming bytes are decoded:
-
0x00is treated as end of stream, and -1 is returned -
0xFFis treated as encoding flag and skipped
- Author:
- BaseX Team 2005-21, BSD License, Christian Gruen
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.io.InputStream
available, close, mark, markSupported, nullInputStream, read, read, readAllBytes, readNBytes, readNBytes, reset, skip, skipNBytes, transferTo
-
Constructor Details
-
ServerInput
Constructor.- Parameters:
input- buffer input to be wrapped
-
-
Method Details
-
read
- Specified by:
readin classInputStream- Throws:
IOException
-
flush
Flushes the remaining client data.- Throws:
IOException- I/O exception
-