iaik.utils
Class EnhancedByteArrayOutputStream

java.lang.Object
  |
  +--java.io.OutputStream
        |
        +--java.io.ByteArrayOutputStream
              |
              +--iaik.utils.EnhancedByteArrayOutputStream

public class EnhancedByteArrayOutputStream
extends ByteArrayOutputStream

A ByteArrayOutputStream that tries to avoid copying the data if possible.

Version:
File Revision 7

Fields inherited from class java.io.ByteArrayOutputStream
buf, count
 
Constructor Summary
EnhancedByteArrayOutputStream()
           
EnhancedByteArrayOutputStream(int size)
           
 
Method Summary
 InputStream getInputStream()
           
 byte[] toByteArray()
           
 
Methods inherited from class java.io.ByteArrayOutputStream
close, reset, size, toString, toString, toString, write, write, writeTo
 
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
 

Constructor Detail

EnhancedByteArrayOutputStream

public EnhancedByteArrayOutputStream()

EnhancedByteArrayOutputStream

public EnhancedByteArrayOutputStream(int size)
Method Detail

toByteArray

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

getInputStream

public InputStream getInputStream()

This Javadoc may contain text parts from Internet Standard specifications (RFC 2459, 3280, 3039, 2560, 1521, 821, 822, 2253, 1319, 1321, ,2630, 2631, 2268, 3058, 2984, 2104, 2144, 2040, 2311, 2279, see copyright note) and RSA Data Security Public-Key Cryptography Standards (PKCS#1,3,5,7,8,9,10,12, see copyright note).

IAIK-JCE 3.1 with IAIK-JCE CC Core 3.1, (c) 1997-2004 IAIK