| java.lang.Object java.io.OutputStream com.tc.io.TCByteBufferOutputStream
TCByteBufferOutputStream | public class TCByteBufferOutputStream extends OutputStream implements TCByteBufferOutput(Code) | | Use me to write data to a set of TCByteBuffer instances.
NOTE: This class never throws java.io.IOException (unlike the generic OutputStream) class
|
Inner Class :public class Mark | |
TCByteBufferOutputStream | public TCByteBufferOutputStream()(Code) | | |
TCByteBufferOutputStream | public TCByteBufferOutputStream(int blockSize, boolean direct)(Code) | | |
TCByteBufferOutputStream | public TCByteBufferOutputStream(int initialBlockSize, int maxBlockSize, boolean direct)(Code) | | |
close | public void close()(Code) | | |
getBytesWritten | public int getBytesWritten()(Code) | | |
mark | public Mark mark()(Code) | | Create a "mark" in this stream. A mark can be used to fixup data in an earlier portion of the stream even after you
have written past it. One place this is useful is when you need to backtrack and fill in a length field after
writing some arbitrary data to the stream
|
recycle | public void recycle()(Code) | | |
toArray | public TCByteBuffer[] toArray()(Code) | | Obtain the contents of this stream as an array of TCByteBuffer
|
write | public void write(int b)(Code) | | |
write | public void write(byte b)(Code) | | |
write | public void write(TCByteBuffer[] data)(Code) | | Add arbitrary buffers into the stream. All of the data (from position 0 to limit()) in each buffer passed will be
used in the stream. If that is not what you want, setup your buffers differently before calling this write()
|
write | public void write(byte b, int offset, int length)(Code) | | |
writeBoolean | final public void writeBoolean(boolean value)(Code) | | |
writeByte | final public void writeByte(int value)(Code) | | |
writeChar | final public void writeChar(int value)(Code) | | |
writeDouble | final public void writeDouble(double value)(Code) | | |
writeFloat | final public void writeFloat(float value)(Code) | | |
writeInt | final public void writeInt(int value)(Code) | | |
writeLong | final public void writeLong(long value)(Code) | | |
writeShort | final public void writeShort(int value)(Code) | | |
writeString | final public void writeString(String string)(Code) | | |
writeString | final public void writeString(String string, boolean forceRaw)(Code) | | |
|
|