com.develop.io
Class NakedByteStream

java.lang.Object
  extended byjava.io.OutputStream
      extended byjava.io.ByteArrayOutputStream
          extended bycom.develop.io.NakedByteStream

public class NakedByteStream
extends java.io.ByteArrayOutputStream

works around the java ByteArray streams, which do not provide direct access to the byte array. Direct access can make programs trickier to debug but saves a System.arraycopy on every marshal!


Constructor Summary
NakedByteStream()
           
 
Method Summary
 int getCount()
           
 byte[] getInternalBuffer()
           
 
Methods inherited from class java.io.ByteArrayOutputStream
close, reset, size, toByteArray, toString, toString, toString, write, write, writeTo
 
Methods inherited from class java.io.OutputStream
flush, write
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NakedByteStream

public NakedByteStream()
Method Detail

getInternalBuffer

public byte[] getInternalBuffer()

getCount

public int getCount()
Returns:


Composia Soft Ltd. Designed by Vitally Shelest. .