org.basex.io.in
Class DecodingInput

java.lang.Object
  extended by java.io.InputStream
      extended by org.basex.io.in.DecodingInput
All Implemented Interfaces:
java.io.Closeable

public final class DecodingInput
extends java.io.InputStream

This server-side class wraps an InputStream filled by a database client. The incoming bytes are decoded:

Author:
BaseX Team 2005-12, BSD License, Christian Gruen

Constructor Summary
DecodingInput(java.io.InputStream in)
          Constructor.
 
Method Summary
 void flush()
          Flushes the remaining client data.
 int read()
           
 
Methods inherited from class java.io.InputStream
available, close, mark, markSupported, read, read, reset, skip
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DecodingInput

public DecodingInput(java.io.InputStream in)
Constructor.

Parameters:
in - buffer input to be wrapped
Method Detail

read

public int read()
         throws java.io.IOException
Specified by:
read in class java.io.InputStream
Throws:
java.io.IOException

flush

public void flush()
           throws java.io.IOException
Flushes the remaining client data.

Throws:
java.io.IOException - I/O exception