com.twitter.common.text.util
Class TokenStreamSerializer.AttributeInputStream

java.lang.Object
  extended by java.io.InputStream
      extended by java.io.FilterInputStream
          extended by java.io.DataInputStream
              extended by com.twitter.common.text.util.TokenStreamSerializer.AttributeInputStream
All Implemented Interfaces:
Closeable, DataInput
Enclosing class:
TokenStreamSerializer

public static class TokenStreamSerializer.AttributeInputStream
extends DataInputStream

A DataInputStream that supports VInt-encoding.


Field Summary
 
Fields inherited from class java.io.FilterInputStream
in
 
Constructor Summary
TokenStreamSerializer.AttributeInputStream(InputStream input)
           
 
Method Summary
 int readVInt()
          Reads a value using VInt encoding.
 
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

TokenStreamSerializer.AttributeInputStream

public TokenStreamSerializer.AttributeInputStream(InputStream input)
Method Detail

readVInt

public final int readVInt()
                   throws IOException
Reads a value using VInt encoding.

Throws:
IOException