jsdsi.sexp
Class ObjInputStream

java.lang.Object
  |
  +--java.io.InputStream
        |
        +--java.io.FilterInputStream
              |
              +--jsdsi.sexp.ObjInputStream

public class ObjInputStream
extends java.io.FilterInputStream

Reads SDSI objects encoded as S-expressions from an underlying stream. Supports the canonical, transport, and readable S-expression encodings.

Author:
Sameer Ajmani
See Also:
SexpInputStream, ObjOutputStream

Field Summary
static int MAX_OBJ_SIZE
           
 
Fields inherited from class java.io.FilterInputStream
in
 
Constructor Summary
ObjInputStream(java.io.InputStream is)
          Creates a new ObjInputStream that reads from the given stream.
 
Method Summary
 Obj readObj()
          Reads an Obj from the underlying stream.
 
Methods inherited from class java.io.FilterInputStream
available, close, mark, markSupported, read, read, read, reset, skip
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MAX_OBJ_SIZE

public static final int MAX_OBJ_SIZE
See Also:
Constant Field Values
Constructor Detail

ObjInputStream

public ObjInputStream(java.io.InputStream is)
Creates a new ObjInputStream that reads from the given stream.

Method Detail

readObj

public Obj readObj()
            throws SexpParseException,
                   SexpException,
                   java.io.IOException
Reads an Obj from the underlying stream.

SexpParseException
SexpException
java.io.IOException