oracle.security.crypto.util
Class UnsyncByteArrayOutputStream
java.lang.Object
java.io.OutputStream
oracle.security.crypto.util.UnsyncByteArrayOutputStream
- 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
-
- Throws:
java.io.IOException
write
public void write(byte[] b,
int off,
int len)
throws java.io.IOException
-
- 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()
close
public void close()
throws java.io.IOException
-
- Throws:
java.io.IOException
Copyright © 2005 , Oracle. All rights reserved.