Class BlockfileHeaderTokens
java.lang.Object
io.datarouter.bytes.blockfile.block.tokens.BlockfileBaseTokens
io.datarouter.bytes.blockfile.block.tokens.BlockfileHeaderTokens
-
Field Summary
Fields inherited from class io.datarouter.bytes.blockfile.block.tokens.BlockfileBaseTokens
NUM_LENGTH_BYTES, NUM_PREFIX_BYTES -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic BlockfileLocationstatic intreadBlockLength(InputStream inputStream) static BlockfileBlockTypereadBlockType(InputStream inputStream) static byte[]readValueBytes(InputStream inputStream, int blockLength) intList<byte[]> toList()static intvalueLength(int blockLength) static BlockfileLocationvalueLocation(int blockLength) static longMethods inherited from class io.datarouter.bytes.blockfile.block.tokens.BlockfileBaseTokens
blockType, concat, decodeLength, encodeBlockType, encodeLength, length, prefixBytes, scan, totalLength
-
Constructor Details
-
BlockfileHeaderTokens
public BlockfileHeaderTokens(int length, byte[] value)
-
-
Method Details
-
suffixLength
public int suffixLength()- Specified by:
suffixLengthin classBlockfileBaseTokens
-
toList
- Specified by:
toListin classBlockfileBaseTokens
-
lengthLocation
-
valueOffset
public static long valueOffset() -
valueLength
public static int valueLength(int blockLength) -
valueLocation
-
readBlockLength
-
readBlockType
-
readValueBytes
-