com.sun.xml.wss.impl.misc
Class UnsyncByteArrayOutputStream

java.lang.Object
  extended by java.io.OutputStream
      extended by java.io.ByteArrayOutputStream
          extended by com.sun.xml.wss.impl.misc.UnsyncByteArrayOutputStream
All Implemented Interfaces:
Closeable, Flushable

public class UnsyncByteArrayOutputStream
extends ByteArrayOutputStream

A simple Unsynced ByteArryOutputStream

Author:
raul

Field Summary
 
Fields inherited from class java.io.ByteArrayOutputStream
count
 
Constructor Summary
UnsyncByteArrayOutputStream()
           
UnsyncByteArrayOutputStream(int size)
           
 
Method Summary
 byte[] getBytes()
           
 int getLength()
           
 void reset()
           
 byte[] toByteArray()
           
 void write(byte[] arg0)
           
 void write(byte[] arg0, int arg1, int arg2)
           
 void write(int arg0)
           
 
Methods inherited from class java.io.ByteArrayOutputStream
close, size, toString, toString, toString, writeTo
 
Methods inherited from class java.io.OutputStream
flush
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

UnsyncByteArrayOutputStream

public UnsyncByteArrayOutputStream()

UnsyncByteArrayOutputStream

public UnsyncByteArrayOutputStream(int size)
Method Detail

write

public void write(byte[] arg0)
Overrides:
write in class OutputStream

write

public void write(byte[] arg0,
                  int arg1,
                  int arg2)
Overrides:
write in class ByteArrayOutputStream

write

public void write(int arg0)
Overrides:
write in class ByteArrayOutputStream

toByteArray

public byte[] toByteArray()
Overrides:
toByteArray in class ByteArrayOutputStream

reset

public void reset()
Overrides:
reset in class ByteArrayOutputStream

getLength

public int getLength()

getBytes

public byte[] getBytes()


Copyright © 2005-2015 Oracle Corporation. All Rights Reserved.