de.grogra.util
Class XByteArrayOutputStream

java.lang.Object
  extended by java.io.OutputStream
      extended by java.io.ByteArrayOutputStream
          extended by de.grogra.util.XByteArrayOutputStream
All Implemented Interfaces:
java.io.Closeable, java.io.Flushable

public class XByteArrayOutputStream
extends java.io.ByteArrayOutputStream


Field Summary
 
Fields inherited from class java.io.ByteArrayOutputStream
buf, count
 
Constructor Summary
XByteArrayOutputStream(int size)
           
 
Method Summary
 java.io.ByteArrayInputStream createInputStream()
           
 byte[] getBuffer()
           
 void read(java.io.InputStream in)
           
 
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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

XByteArrayOutputStream

public XByteArrayOutputStream(int size)
Method Detail

createInputStream

public java.io.ByteArrayInputStream createInputStream()

getBuffer

public byte[] getBuffer()

read

public void read(java.io.InputStream in)
          throws java.io.IOException
Throws:
java.io.IOException