public interface ISequenceEncoder
Derived form encoding helps in making the data for the automaton smaller and more repetitive (which results in higher compression rates).
See example implementation for details.
| Modifier and Type | Method and Description |
|---|---|
java.nio.ByteBuffer |
decode(java.nio.ByteBuffer reuse,
java.nio.ByteBuffer source,
java.nio.ByteBuffer encoded)
Decodes
encoded relative to source,
optionally reusing the provided ByteBuffer. |
java.nio.ByteBuffer |
encode(java.nio.ByteBuffer reuse,
java.nio.ByteBuffer source,
java.nio.ByteBuffer target)
Encodes
target relative to source,
optionally reusing the provided ByteBuffer. |
int |
prefixBytes()
Deprecated.
|
java.nio.ByteBuffer encode(java.nio.ByteBuffer reuse,
java.nio.ByteBuffer source,
java.nio.ByteBuffer target)
target relative to source,
optionally reusing the provided ByteBuffer.reuse - 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.java.nio.ByteBuffer decode(java.nio.ByteBuffer reuse,
java.nio.ByteBuffer source,
java.nio.ByteBuffer encoded)
encoded relative to source,
optionally reusing the provided ByteBuffer.reuse - 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.@Deprecated int prefixBytes()
Copyright © 2018. All rights reserved.