intarsys runtime library

de.intarsys.tools.stream
Class FastByteArrayOutputStream

java.lang.Object
  extended by java.io.OutputStream
      extended by de.intarsys.tools.stream.FastByteArrayOutputStream
All Implemented Interfaces:
Closeable, Flushable

public class FastByteArrayOutputStream
extends OutputStream


Constructor Summary
FastByteArrayOutputStream()
           
FastByteArrayOutputStream(int size)
           
 
Method Summary
 byte[] getBytes()
           
 void reset()
           
 int size()
           
 byte[] toByteArray()
           
 void write(byte[] b, int off, int len)
           
 void write(int b)
           
 
Methods inherited from class java.io.OutputStream
close, flush, write
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FastByteArrayOutputStream

public FastByteArrayOutputStream()

FastByteArrayOutputStream

public FastByteArrayOutputStream(int size)
Method Detail

getBytes

public byte[] getBytes()

reset

public void reset()

size

public int size()

toByteArray

public byte[] toByteArray()

write

public void write(byte[] b,
                  int off,
                  int len)
Overrides:
write in class OutputStream

write

public void write(int b)
Specified by:
write in class OutputStream

intarsys runtime library

Copyright © 2008 intarsys consulting GmbH. All Rights Reserved.