org.deckfour.xes.nikefs2
Class NikeFS2RandomAccessStorageImpl.FS2DataInputStream

java.lang.Object
  extended by java.io.InputStream
      extended by java.io.FilterInputStream
          extended by java.io.DataInputStream
              extended by org.deckfour.xes.nikefs2.NikeFS2RandomAccessStorageImpl.FS2DataInputStream
All Implemented Interfaces:
Closeable, DataInput
Enclosing class:
NikeFS2RandomAccessStorageImpl

protected class NikeFS2RandomAccessStorageImpl.FS2DataInputStream
extends DataInputStream

Internal support class implementing a data input stream with NikeFS2-block-safe UTF-8 string serialization.

Author:
Christian W. Guenther (christian@deckfour.org)

Field Summary
 
Fields inherited from class java.io.FilterInputStream
in
 
Constructor Summary
NikeFS2RandomAccessStorageImpl.FS2DataInputStream(InputStream in)
           
 
Method Summary
 String readSafeUTF()
          Deserializes a block-safe UTF-8 string.
 
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
 

Constructor Detail

NikeFS2RandomAccessStorageImpl.FS2DataInputStream

public NikeFS2RandomAccessStorageImpl.FS2DataInputStream(InputStream in)
Parameters:
in - Input stream to read from.
Method Detail

readSafeUTF

public String readSafeUTF()
                   throws IOException
Deserializes a block-safe UTF-8 string.

Returns:
UTF-8 string.
Throws:
IOException