com.develop.io
Class NakedByteStream

java.lang.Object
  |
  +--java.io.OutputStream
        |
        +--java.io.ByteArrayOutputStream
              |
              +--com.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!


Fields inherited from class java.io.ByteArrayOutputStream
buf, count, isClosed
 
Constructor Summary
NakedByteStream()
           
 
Method Summary
 int getCount()
           
 byte[] getInternalBuffer()
           
 
Methods inherited from class java.io.ByteArrayOutputStream
close, ensureOpen, 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
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, wait, wait, wait
 

Constructor Detail

NakedByteStream

public NakedByteStream()
Method Detail

getInternalBuffer

public byte[] getInternalBuffer()

getCount

public int getCount()


New Jawin designed by Vitally Shelest. This product includes software developed by the DevelopMentor OpenSource Project (http://www.develop.com/OpenSource).