Skip navigation links 
 
oracle.security.crypto.util
Class UnsyncByteArrayOutputStream
java.lang.Object
  
java.io.OutputStream
      
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 
            | 
  
 
  
 
 
| 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 | 
 
 
buf
protected byte[] buf
count
protected int count
UnsyncByteArrayOutputStream
public UnsyncByteArrayOutputStream()
UnsyncByteArrayOutputStream
public UnsyncByteArrayOutputStream(int size)
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 
 
Copyright © 2005, 2009, Oracle. All rights reserved.