hep.io.sio
Class SIOInputStream

java.lang.Object
  extended by java.io.InputStream
      extended by java.io.FilterInputStream
          extended by java.io.DataInputStream
              extended by hep.io.xdr.XDRInputStream
                  extended by hep.io.sio.SIOInputStream
All Implemented Interfaces:
hep.io.xdr.XDRDataInput, Closeable, DataInput

public class SIOInputStream
extends hep.io.xdr.XDRInputStream

An SIOInputStream provides all the functionality of an XDRInputStream, but adds the ability to do pointer relocation within records.


Field Summary
 
Fields inherited from class java.io.FilterInputStream
in
 
Constructor Summary
SIOInputStream(InputStream in, SIOInputStream parent)
          An input stream which shares a map with a parent stream
 
Method Summary
 SIORef readPntr()
          Read an SIO PNTR.
 void readPTag(Object o)
          Read an SIO PTAG and associate it with an Object o
 
Methods inherited from class hep.io.xdr.XDRInputStream
clearReadLimit, getBytesRead, pad, readDoubleArray, readFloatArray, readIntArray, readString, readString, setReadLimit
 
Methods inherited from class java.io.DataInputStream
read, read, readBoolean, readByte, readChar, readDouble, readFloat, readFully, readFully, readInt, readLine, readLong, readShort, readUnsignedByte, readUnsignedShort, readUTF, readUTF, skipBytes
 
Methods inherited from class java.io.FilterInputStream
available, close, mark, markSupported, read, reset, skip
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.io.DataInput
readBoolean, readByte, readChar, readDouble, readFloat, readFully, readFully, readInt, readLine, readLong, readShort, readUnsignedByte, readUnsignedShort, readUTF, skipBytes
 

Constructor Detail

SIOInputStream

public SIOInputStream(InputStream in,
                      SIOInputStream parent)
An input stream which shares a map with a parent stream

Method Detail

readPTag

public void readPTag(Object o)
              throws IOException
Read an SIO PTAG and associate it with an Object o

Throws:
IOException

readPntr

public SIORef readPntr()
                throws IOException
Read an SIO PNTR.

Returns:
An SIORef which can be used to access the target object after the entire record has been read
Throws:
IOException


Copyright © 2000-2007 FreeHEP. All Rights Reserved.