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 void
clear()
Deprecated.Clears the stream.void
endBlock()
Deprecated.Ends block.byte[]
getBuffer()
Deprecated.ByteBufferStream
put(byte b)
Deprecated.Put byteByteBufferStream
put(byte[] value)
Deprecated.Put all bytes to stream.ByteBufferStream
put(byte[] value, int offset, int len)
Deprecated.Put all bytes to stream.ByteBufferStream
put(ByteBuffer value)
Deprecated.Put all bytes to stream.ByteBufferStream
putInt(int value)
Deprecated.Put intByteBufferStream
putLong(long value)
Deprecated.Put longvoid
startBlock()
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.
-
-