public class NoEncoder extends Object implements ISequenceEncoder
| Constructor and Description |
|---|
NoEncoder() |
| Modifier and Type | Method and Description |
|---|---|
ByteBuffer |
decode(ByteBuffer reuse,
ByteBuffer source,
ByteBuffer encoded)
|
ByteBuffer |
encode(ByteBuffer reuse,
ByteBuffer source,
ByteBuffer target)
|
String |
toString() |
public ByteBuffer encode(ByteBuffer reuse, ByteBuffer source, ByteBuffer target)
ISequenceEncoderencode in interface ISequenceEncoderreuse - Reuses the provided ByteBuffer or allocates a new one if there is not enough remaining space.source - The source byte sequence.target - The target byte sequence to encode relative to sourceByteBuffer with encoded target.public ByteBuffer decode(ByteBuffer reuse, ByteBuffer source, ByteBuffer encoded)
ISequenceEncoderdecode in interface ISequenceEncoderreuse - Reuses the provided ByteBuffer or allocates a new one if there is not enough remaining space.source - The source byte sequence.encoded - The previously encoded byte sequence.ByteBuffer with decoded target.Copyright © 2016. All rights reserved.