Skip navigation links

Oracle Security Developer Tools Crypto Java API Reference
11g (11.1.1)

E10668-02


oracle.security.crypto.util
Class UnsyncByteArrayOutputStream

java.lang.Object
  extended by java.io.OutputStream
      extended by oracle.security.crypto.util.UnsyncByteArrayOutputStream

All Implemented Interfaces:
java.io.Closeable, java.io.Flushable

public class UnsyncByteArrayOutputStream
extends java.io.OutputStream

A ByteArrayOutputStream with unsynchronized methods for greater efficiency.


Field Summary
protected  byte[] buf
           
protected  int count
           

 

Constructor Summary
UnsyncByteArrayOutputStream()
           
UnsyncByteArrayOutputStream(int size)
           

 

Method Summary
 void close()
           
 void reset()
           
 int size()
           
 byte[] toByteArray()
           
 java.lang.String toString()
           
 void write(byte[] b, int off, int len)
           
 void write(int b)
           
 void writeTo(java.io.OutputStream out)
           

 

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

 

Field Detail

buf

protected byte[] buf

count

protected int count

Constructor Detail

UnsyncByteArrayOutputStream

public UnsyncByteArrayOutputStream()

UnsyncByteArrayOutputStream

public UnsyncByteArrayOutputStream(int size)

Method Detail

write

public void write(int b)
           throws java.io.IOException
Specified by:
write in class java.io.OutputStream
Throws:
java.io.IOException

write

public void write(byte[] b,
                  int off,
                  int len)
           throws java.io.IOException
Overrides:
write in class java.io.OutputStream
Throws:
java.io.IOException

writeTo

public void writeTo(java.io.OutputStream out)
             throws java.io.IOException
Throws:
java.io.IOException

reset

public void reset()
           throws java.io.IOException
Throws:
java.io.IOException

toByteArray

public byte[] toByteArray()

size

public int size()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

close

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

Skip navigation links

Oracle Security Developer Tools Crypto Java API Reference
11g (11.1.1)

E10668-02


Copyright © 2005, 2009, Oracle. All rights reserved.