org.crsh.util
Class BytesOutputStream

java.lang.Object
  extended by java.io.OutputStream
      extended by java.io.ByteArrayOutputStream
          extended by org.crsh.util.BytesOutputStream
All Implemented Interfaces:
java.io.Closeable, java.io.Flushable

public class BytesOutputStream
extends java.io.ByteArrayOutputStream

Extends the ByteArrayOutputStream for providing an input stream over the buffer.

Version:
$Revision$
Author:
Julien Viet

Field Summary
 
Fields inherited from class java.io.ByteArrayOutputStream
buf, count
 
Constructor Summary
BytesOutputStream()
           
BytesOutputStream(int size)
           
 
Method Summary
 void close()
           
 java.io.InputStream getInputStream()
           
 
Methods inherited from class java.io.ByteArrayOutputStream
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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BytesOutputStream

public BytesOutputStream()

BytesOutputStream

public BytesOutputStream(int size)
Method Detail

getInputStream

public java.io.InputStream getInputStream()

close

public void close()
           throws java.io.IOException
Specified by:
close in interface java.io.Closeable
Overrides:
close in class java.io.ByteArrayOutputStream
Throws:
java.io.IOException


Copyright © 2010 eXo Platform SAS. All Rights Reserved.