org.apache.catalina.tribes.io

Class DirectByteArrayOutputStream

public class DirectByteArrayOutputStream extends OutputStream

Byte array output stream that exposes the byte array directly

Version: 1.0

Author: not attributable

Constructor Summary
DirectByteArrayOutputStream(int size)
Method Summary
byte[]getArray()
byte[]getArrayDirect()
intsize()
voidwrite(int b)
Writes the specified byte to this output stream.

Constructor Detail

DirectByteArrayOutputStream

public DirectByteArrayOutputStream(int size)

Method Detail

getArray

public byte[] getArray()

getArrayDirect

public byte[] getArrayDirect()

size

public int size()

write

public void write(int b)
Writes the specified byte to this output stream.

Parameters: b the byte.

Throws: IOException if an I/O error occurs. In particular, an IOException may be thrown if the output stream has been closed.

UNKNOWN: Implement this java.io.OutputStream method

Copyright © 2000-2011 Apache Software Foundation. All Rights Reserved.