Class ByteBufferStream
- java.lang.Object
-
- com._1c.g5.v8.bm.common.serialization.ByteBufferStream
-
@Deprecated public class ByteBufferStream extends Object
Deprecated.NIO is block-oriented IO. In case you need stream-oriented IO, use ByteArrayOutputStream.Implements a bytes stream using ByteBuffers
-
-
Constructor Summary
Constructors Constructor Description ByteBufferStream()Deprecated.Allocate buffer with default size 1kb.ByteBufferStream(int size)Deprecated.Allocate buffer with specified initial size.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidclear()Deprecated.Clears the stream.voidendBlock()Deprecated.Ends block.byte[]getBuffer()Deprecated.ByteBufferStreamput(byte b)Deprecated.Put byteByteBufferStreamput(byte[] value)Deprecated.Put all bytes to stream.ByteBufferStreamput(byte[] value, int offset, int len)Deprecated.Put all bytes to stream.ByteBufferStreamput(ByteBuffer value)Deprecated.Put all bytes to stream.ByteBufferStreamputInt(int value)Deprecated.Put intByteBufferStreamputLong(long value)Deprecated.Put longvoidstartBlock()Deprecated.Starts block.
-
-
-
Method Detail
-
getBuffer
public byte[] getBuffer()
Deprecated.- Returns:
- the buffer
-
put
public ByteBufferStream put(byte b)
Deprecated.Put byte
-
putInt
public ByteBufferStream putInt(int value)
Deprecated.Put int
-
putLong
public ByteBufferStream putLong(long value)
Deprecated.Put long
-
put
public ByteBufferStream put(ByteBuffer value)
Deprecated.Put all bytes to stream.
-
put
public ByteBufferStream put(byte[] value)
Deprecated.Put all bytes to stream.
-
put
public ByteBufferStream put(byte[] value, int offset, int len)
Deprecated.Put all bytes to stream.
-
clear
public void clear()
Deprecated.Clears the stream.
-
startBlock
public void startBlock()
Deprecated.Starts block.
-
endBlock
public void endBlock()
Deprecated.Ends block.
-
-