voldemort.utils
Class StringOutputStream

java.lang.Object
  extended by java.io.OutputStream
      extended by voldemort.utils.StringOutputStream
All Implemented Interfaces:
java.io.Closeable, java.io.Flushable

public class StringOutputStream
extends java.io.OutputStream

A simple string Output Stream.


Constructor Summary
StringOutputStream()
           
 
Method Summary
 java.lang.String getString()
           
 void write(int data)
           
 
Methods inherited from class java.io.OutputStream
close, flush, write, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StringOutputStream

public StringOutputStream()
Method Detail

write

public void write(int data)
           throws java.io.IOException
Specified by:
write in class java.io.OutputStream
Throws:
java.io.IOException

getString

public java.lang.String getString()


Jay Kreps, Roshan Sumbaly, Alex Feinberg, Bhupesh Bansal, Lei Gao, Chinmay Soman, Vinoth Chandar, Zhongjie Wu