Class ServerInput

java.lang.Object
java.io.InputStream
org.basex.io.in.ServerInput
All Implemented Interfaces:
Closeable, AutoCloseable

public final class ServerInput extends InputStream
This server-side class wraps an InputStream reference by a database client. The incoming bytes are decoded:
  • 0x00 is treated as end of stream, and -1 is returned
  • 0xFF is treated as encoding flag and skipped
Author:
BaseX Team 2005-21, BSD License, Christian Gruen
  • Constructor Details

    • ServerInput

      public ServerInput(InputStream input)
      Constructor.
      Parameters:
      input - buffer input to be wrapped
  • Method Details