Class LongUTFDataInputStream

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

    public class LongUTFDataInputStream
    extends java.io.DataInputStream
    This class works around the size limitation of UTF strings (< 64kb) of DataInputStream and needs to be used with LongUTFDataOutputStream
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String readLongUTF()  
      int readUnsignedShortOrInt()  
      static int readUnsignedShortOrInt​(java.io.DataInputStream dis)  
      • 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

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

      • LongUTFDataInputStream

        public LongUTFDataInputStream​(java.io.InputStream in)
    • Method Detail

      • readUnsignedShortOrInt

        public int readUnsignedShortOrInt()
                                   throws java.io.IOException
        Throws:
        java.io.IOException
      • readUnsignedShortOrInt

        public static int readUnsignedShortOrInt​(java.io.DataInputStream dis)
                                          throws java.io.IOException
        Throws:
        java.io.IOException
      • readLongUTF

        public java.lang.String readLongUTF()
                                     throws java.io.IOException
        Throws:
        java.io.IOException