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

java.lang.Object
  extended by java.io.OutputStream
      extended by java.io.FilterOutputStream
          extended by java.io.DataOutputStream
              extended by com.twitter.common.text.util.TokenStreamSerializer.AttributeOutputStream
All Implemented Interfaces:
Closeable, DataOutput, Flushable
Enclosing class:
TokenStreamSerializer

public static class TokenStreamSerializer.AttributeOutputStream
extends DataOutputStream

A DataOutputStream that supports VInt-encoding.


Field Summary
 
Fields inherited from class java.io.DataOutputStream
written
 
Fields inherited from class java.io.FilterOutputStream
out
 
Constructor Summary
TokenStreamSerializer.AttributeOutputStream(OutputStream output)
           
 
Method Summary
 void writeVInt(int value)
          Writes a value using VInt encoding.
 
Methods inherited from class java.io.DataOutputStream
flush, size, write, write, writeBoolean, writeByte, writeBytes, writeChar, writeChars, writeDouble, writeFloat, writeInt, writeLong, writeShort, writeUTF
 
Methods inherited from class java.io.FilterOutputStream
close, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.io.DataOutput
write
 

Constructor Detail

TokenStreamSerializer.AttributeOutputStream

public TokenStreamSerializer.AttributeOutputStream(OutputStream output)
Method Detail

writeVInt

public final void writeVInt(int value)
                     throws IOException
Writes a value using VInt encoding.

Throws:
IOException