Class NikeFS2RandomAccessStorageImpl.FS2DataInputStream

  • All Implemented Interfaces:
    java.io.Closeable, java.io.DataInput, java.lang.AutoCloseable
    Enclosing class:
    NikeFS2RandomAccessStorageImpl

    protected class NikeFS2RandomAccessStorageImpl.FS2DataInputStream
    extends java.io.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

      Constructors 
      Constructor Description
      FS2DataInputStream​(java.io.InputStream in)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.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.io.InputStream

        nullInputStream, readAllBytes, readNBytes, readNBytes, transferTo
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • FS2DataInputStream

        public FS2DataInputStream​(java.io.InputStream in)
        Parameters:
        in - Input stream to read from.
    • Method Detail

      • readSafeUTF

        public java.lang.String readSafeUTF()
                                     throws java.io.IOException
        Deserializes a block-safe UTF-8 string.
        Returns:
        UTF-8 string.
        Throws:
        java.io.IOException