SunSPOT API V3.0


com.sun.squawk.util
Class ByteArrayOutputStreamWithGetBytes

java.lang.Object
  extended by java.io.OutputStream
      extended by java.io.ByteArrayOutputStream
          extended by com.sun.squawk.util.ByteArrayOutputStreamWithGetBytes

public class ByteArrayOutputStreamWithGetBytes
extends ByteArrayOutputStream

An extention of ByteArrayOutputStream that allows the byte array buffer to be read directly, using the getBytes() method.

See Also:
ByteArrayOutputStream

Field Summary
 
Fields inherited from class java.io.ByteArrayOutputStream
buf, count
 
Constructor Summary
ByteArrayOutputStreamWithGetBytes()
           
ByteArrayOutputStreamWithGetBytes(int size)
           
 
Method Summary
 void ensureEnoughRoomFor(int size)
           
 byte[] getBytes()
           
 void skip(int size)
           
 
Methods inherited from class java.io.ByteArrayOutputStream
close, reset, size, toByteArray, toString, write, write
 
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

ByteArrayOutputStreamWithGetBytes

public ByteArrayOutputStreamWithGetBytes()

ByteArrayOutputStreamWithGetBytes

public ByteArrayOutputStreamWithGetBytes(int size)
Method Detail

ensureEnoughRoomFor

public void ensureEnoughRoomFor(int size)

getBytes

public byte[] getBytes()

skip

public void skip(int size)

SunSPOT API V3.0


Copyright © 2006, 2007 Sun Microsystems, Inc. All Rights Reserved.