hudson.util
Class ByteArrayOutputStream2

java.lang.Object
  extended by java.io.OutputStream
      extended by java.io.ByteArrayOutputStream
          extended by hudson.util.ByteArrayOutputStream2
All Implemented Interfaces:
Closeable, Flushable

public class ByteArrayOutputStream2
extends ByteArrayOutputStream

ByteArrayOutputStream with access to its raw buffer.

Since:
1.349

Field Summary
 
Fields inherited from class java.io.ByteArrayOutputStream
buf, count
 
Constructor Summary
ByteArrayOutputStream2()
           
ByteArrayOutputStream2(int size)
           
 
Method Summary
 byte[] getBuffer()
           
 void readFrom(InputStream is)
          Reads the given InputStream completely into the buffer.
 
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

ByteArrayOutputStream2

public ByteArrayOutputStream2()

ByteArrayOutputStream2

public ByteArrayOutputStream2(int size)
Method Detail

getBuffer

public byte[] getBuffer()

readFrom

public void readFrom(InputStream is)
              throws IOException
Reads the given InputStream completely into the buffer.

Throws:
IOException


Copyright © 2004-2013. All Rights Reserved.