Package org.apache.xmlbeans.impl.util
Class LongUTFDataInputStream
- java.lang.Object
-
- java.io.InputStream
-
- java.io.FilterInputStream
-
- java.io.DataInputStream
-
- org.apache.xmlbeans.impl.util.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
-
-
Constructor Summary
Constructors Constructor Description LongUTFDataInputStream(java.io.InputStream in)
-
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
-
-
-
-
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
-
-