org.apache.blur.thrift.util
Class ResetableTByteArrayOutputStream

java.lang.Object
  extended by java.io.OutputStream
      extended by java.io.ByteArrayOutputStream
          extended by org.apache.blur.thirdparty.thrift_0_9_0.TByteArrayOutputStream
              extended by org.apache.blur.thrift.util.ResetableTByteArrayOutputStream
All Implemented Interfaces:
Closeable, Flushable

public class ResetableTByteArrayOutputStream
extends TByteArrayOutputStream

Class that allows access to the underlying buf without doing deep copies on it.


Constructor Summary
ResetableTByteArrayOutputStream()
           
ResetableTByteArrayOutputStream(int size)
           
 
Method Summary
 byte[] get()
           
 int len()
           
 void resetBuffer()
           
 
Methods inherited from class java.io.ByteArrayOutputStream
close, reset, size, toByteArray, toString, toString, toString, write, write, writeTo
 
Methods inherited from class java.io.OutputStream
flush, write
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ResetableTByteArrayOutputStream

public ResetableTByteArrayOutputStream(int size)

ResetableTByteArrayOutputStream

public ResetableTByteArrayOutputStream()
Method Detail

get

public byte[] get()
Overrides:
get in class TByteArrayOutputStream

len

public int len()
Overrides:
len in class TByteArrayOutputStream

resetBuffer

public void resetBuffer()


Copyright © 2012-2014 The Apache Software Foundation. All Rights Reserved.