Index
All Classes and Interfaces|All Packages|Serialized Form
A
- add(K, V) - Method in interface io.bytestreams.codec.core.Tagged
-
Appends a value for the given tag.
- add(K, V) - Method in class io.bytestreams.codec.core.TaggedData
- alwaysFalse() - Static method in class io.bytestreams.codec.core.util.Predicates
-
Returns a predicate that always returns false.
- alwaysTrue() - Static method in class io.bytestreams.codec.core.util.Predicates
-
Returns a predicate that always returns true.
- andThen(Converter<U, T>) - Method in interface io.bytestreams.codec.core.util.Converter
-
Returns a composed converter that first applies this converter, then applies the
afterconverter. - apply(A, B, C) - Method in interface io.bytestreams.codec.core.util.TriFunction
-
Applies this function to the given arguments.
- as(TriFunction<A, B, C, V>, Function<V, A>, Function<V, B>, Function<V, C>) - Method in class io.bytestreams.codec.core.TripleCodec
-
Maps this triple codec to a domain type.
- as(BiFunction<A, B, V>, Function<V, A>, Function<V, B>) - Method in class io.bytestreams.codec.core.PairCodec
-
Maps this pair codec to a domain type.
- ascii() - Static method in class io.bytestreams.codec.core.Codecs
-
Creates a variable-length US-ASCII string codec.
- ascii(int) - Static method in class io.bytestreams.codec.core.Codecs
-
Creates a fixed-length US-ASCII string codec.
- ascii(Codec<Integer>) - Static method in class io.bytestreams.codec.core.Codecs
-
Creates a variable-length US-ASCII string codec where the code point count is encoded as a prefix.
- asciiInt(int) - Static method in class io.bytestreams.codec.core.Codecs
-
Creates a fixed-length ASCII numeric codec that decodes to
Integer. - asciiLong(int) - Static method in class io.bytestreams.codec.core.Codecs
-
Creates a fixed-length ASCII numeric codec that decodes to
Long.
B
- bcdInt(int) - Static method in class io.bytestreams.codec.core.Codecs
-
Creates a fixed-length BCD (Binary Coded Decimal) codec that decodes to
Integer. - bcdLong(int) - Static method in class io.bytestreams.codec.core.Codecs
-
Creates a fixed-length BCD (Binary Coded Decimal) codec that decodes to
Long. - BiMap<K,
V> - Class in io.bytestreams.codec.core.util -
An immutable bidirectional map that maintains a one-to-one mapping between keys and values.
- binary() - Static method in class io.bytestreams.codec.core.Codecs
-
Creates a variable-length binary codec that reads all remaining bytes from the stream.
- binary(int) - Static method in class io.bytestreams.codec.core.Codecs
-
Creates a fixed-length binary codec.
- binary(Codec<Integer>) - Static method in class io.bytestreams.codec.core.Codecs
-
Creates a variable-length binary codec where the byte count is encoded as a prefix.
- BinaryCodec - Class in io.bytestreams.codec.core
-
A codec for fixed-length binary data.
- BinaryCodec(int) - Constructor for class io.bytestreams.codec.core.BinaryCodec
-
Creates a new binary codec with the specified fixed length.
- BinaryNumberCodec<V> - Class in io.bytestreams.codec.core
-
Codec for
Numbers encoded as fixed-length big-endian binary. - bool() - Static method in class io.bytestreams.codec.core.Codecs
-
Creates a boolean codec (single byte: 0x00 = false, 0x01 = true).
- BooleanCodec - Class in io.bytestreams.codec.core
-
A codec for boolean values encoded as a single byte.
- BooleanCodec() - Constructor for class io.bytestreams.codec.core.BooleanCodec
- build() - Method in class io.bytestreams.codec.core.ChoiceCodec.Builder
-
Builds the choice codec.
- build() - Method in class io.bytestreams.codec.core.SequentialObjectCodec.Builder
-
Builds the SequentialObjectCodec.
- build() - Method in class io.bytestreams.codec.core.TaggedObjectCodec.Builder
-
Builds the TaggedObjectCodec.
- builder(Supplier<T>) - Static method in class io.bytestreams.codec.core.SequentialObjectCodec
-
Creates a new builder for constructing a SequentialObjectCodec.
- builder(Supplier<T>, Codec<K>) - Static method in class io.bytestreams.codec.core.TaggedObjectCodec
-
Creates a new builder for constructing a TaggedObjectCodec.
- bytes() - Method in record class io.bytestreams.codec.core.EncodeResult
-
Returns the value of the
bytesrecord component.
C
- check(boolean, String, Object...) - Static method in class io.bytestreams.codec.core.util.Preconditions
-
Validates that a condition is true.
- choice(Codec<Class<? extends V>>) - Static method in class io.bytestreams.codec.core.Codecs
-
Creates a new builder for a choice codec that encodes discriminated unions.
- ChoiceCodec<V> - Class in io.bytestreams.codec.core
-
A codec for discriminated unions where a class tag determines which codec to use for the value.
- ChoiceCodec.Builder<V> - Class in io.bytestreams.codec.core
-
Builder for
ChoiceCodec. - codec() - Method in interface io.bytestreams.codec.core.FieldSpec
- Codec<V> - Interface in io.bytestreams.codec.core
-
Interface for encoding and decoding values to and from byte streams.
- CodecException - Exception Class in io.bytestreams.codec.core
-
Exception thrown when encoding or decoding fails.
- CodecException(String, Throwable) - Constructor for exception class io.bytestreams.codec.core.CodecException
-
Creates a new CodecException with the given message and cause.
- Codecs - Class in io.bytestreams.codec.core
-
Unified entry point for creating all codec types.
- codePointCount(String) - Static method in class io.bytestreams.codec.core.util.Strings
-
Returns the number of Unicode code points in the string.
- CodePointReader - Interface in io.bytestreams.codec.core.util
-
Reads code points from an input stream using a charset.
- constant(byte[]) - Static method in class io.bytestreams.codec.core.Codecs
-
Creates a constant codec that always writes the expected bytes on encode (ignoring the input value) and validates that the bytes match on decode.
- ConstantCodec - Class in io.bytestreams.codec.core
-
A codec for constant byte sequences such as magic numbers, version bytes, and protocol signatures.
- Converter<V,
U> - Interface in io.bytestreams.codec.core.util -
A bidirectional conversion between two types.
- ConverterException - Exception Class in io.bytestreams.codec.core.util
-
Exception thrown when a
Converterconversion fails. - ConverterException(String, Throwable) - Constructor for exception class io.bytestreams.codec.core.util.ConverterException
-
Creates a new ConverterException with the given message and cause.
- Converters - Class in io.bytestreams.codec.core.util
-
Factory methods for creating
Converterinstances. - count() - Method in record class io.bytestreams.codec.core.EncodeResult
-
Returns the value of the
countrecord component. - create(InputStream, Charset) - Static method in interface io.bytestreams.codec.core.util.CodePointReader
-
Creates a code point reader optimized for the given input stream.
D
- DataObject - Class in io.bytestreams.codec.core
-
Abstract map-backed data object for use with sequential codecs.
- DataObject() - Constructor for class io.bytestreams.codec.core.DataObject
- decode(InputStream) - Method in class io.bytestreams.codec.core.BinaryCodec
-
Decodes a value from the input stream.
- decode(InputStream) - Method in class io.bytestreams.codec.core.BinaryNumberCodec
-
Decodes a value from the input stream.
- decode(InputStream) - Method in class io.bytestreams.codec.core.BooleanCodec
- decode(InputStream) - Method in class io.bytestreams.codec.core.ChoiceCodec
- decode(InputStream) - Method in interface io.bytestreams.codec.core.Codec
-
Decodes a value from the input stream.
- decode(InputStream) - Method in class io.bytestreams.codec.core.ConstantCodec
-
Decodes a value from the input stream.
- decode(InputStream) - Method in class io.bytestreams.codec.core.FixedCodePointStringCodec
-
Decodes a value from the input stream.
- decode(InputStream) - Method in class io.bytestreams.codec.core.FixedHexStringCodec
-
Decodes a value from the input stream.
- decode(InputStream) - Method in class io.bytestreams.codec.core.FixedListCodec
-
Decodes a value from the input stream.
- decode(InputStream) - Method in class io.bytestreams.codec.core.LazyCodec
- decode(InputStream) - Method in class io.bytestreams.codec.core.NotImplementedCodec
- decode(InputStream) - Method in class io.bytestreams.codec.core.PairCodec
- decode(InputStream) - Method in class io.bytestreams.codec.core.RecordingCodec
- decode(InputStream) - Method in class io.bytestreams.codec.core.SequentialObjectCodec
- decode(InputStream) - Method in class io.bytestreams.codec.core.StreamCodePointStringCodec
-
Decodes a value from the input stream.
- decode(InputStream) - Method in class io.bytestreams.codec.core.StreamHexStringCodec
-
Decodes a value from the input stream.
- decode(InputStream) - Method in class io.bytestreams.codec.core.StreamListCodec
-
Decodes a value from the input stream.
- decode(InputStream) - Method in class io.bytestreams.codec.core.TaggedObjectCodec
- decode(InputStream) - Method in class io.bytestreams.codec.core.TripleCodec
- decode(InputStream) - Method in class io.bytestreams.codec.core.VariableByteLengthCodec
-
Decodes a value from the input stream.
- decode(InputStream) - Method in class io.bytestreams.codec.core.VariableItemLengthCodec
-
Decodes a value from the input stream.
- defaultCodec(Codec<?>) - Method in class io.bytestreams.codec.core.TaggedObjectCodec.Builder
-
Sets the default codec for unregistered tags.
E
- ebcdic() - Static method in class io.bytestreams.codec.core.Codecs
-
Creates a variable-length EBCDIC (IBM1047) string codec.
- ebcdic(int) - Static method in class io.bytestreams.codec.core.Codecs
-
Creates a fixed-length EBCDIC (IBM1047) string codec.
- ebcdic(Codec<Integer>) - Static method in class io.bytestreams.codec.core.Codecs
-
Creates a variable-length EBCDIC (IBM1047) string codec where the code point count is encoded as a prefix.
- ebcdicInt(int) - Static method in class io.bytestreams.codec.core.Codecs
-
Creates a fixed-length EBCDIC numeric codec that decodes to
Integer. - ebcdicLong(int) - Static method in class io.bytestreams.codec.core.Codecs
-
Creates a fixed-length EBCDIC numeric codec that decodes to
Long. - EMPTY - Static variable in record class io.bytestreams.codec.core.EncodeResult
-
An empty result representing zero count and zero bytes written.
- encode(byte[], OutputStream) - Method in class io.bytestreams.codec.core.BinaryCodec
-
Encodes the given value and writes it to the output stream.
- encode(byte[], OutputStream) - Method in class io.bytestreams.codec.core.ConstantCodec
-
Encodes the given value and writes it to the output stream.
- encode(Recorded<T>, OutputStream) - Method in class io.bytestreams.codec.core.RecordingCodec
- encode(Pair<A, B>, OutputStream) - Method in class io.bytestreams.codec.core.PairCodec
- encode(Triple<A, B, C>, OutputStream) - Method in class io.bytestreams.codec.core.TripleCodec
- encode(Boolean, OutputStream) - Method in class io.bytestreams.codec.core.BooleanCodec
- encode(String, OutputStream) - Method in class io.bytestreams.codec.core.FixedCodePointStringCodec
-
Encodes the given value and writes it to the output stream.
- encode(String, OutputStream) - Method in class io.bytestreams.codec.core.FixedHexStringCodec
-
Encodes the given value and writes it to the output stream.
- encode(String, OutputStream) - Method in class io.bytestreams.codec.core.StreamCodePointStringCodec
-
Encodes the given value and writes it to the output stream.
- encode(String, OutputStream) - Method in class io.bytestreams.codec.core.StreamHexStringCodec
-
Encodes the given value and writes it to the output stream.
- encode(List<V>, OutputStream) - Method in class io.bytestreams.codec.core.FixedListCodec
-
Encodes the given value and writes it to the output stream.
- encode(List<V>, OutputStream) - Method in class io.bytestreams.codec.core.StreamListCodec
-
Encodes the given value and writes it to the output stream.
- encode(T, OutputStream) - Method in class io.bytestreams.codec.core.SequentialObjectCodec
- encode(T, OutputStream) - Method in class io.bytestreams.codec.core.TaggedObjectCodec
- encode(V, OutputStream) - Method in class io.bytestreams.codec.core.BinaryNumberCodec
-
Encodes the given value and writes it to the output stream.
- encode(V, OutputStream) - Method in class io.bytestreams.codec.core.ChoiceCodec
- encode(V, OutputStream) - Method in interface io.bytestreams.codec.core.Codec
-
Encodes the given value and writes it to the output stream.
- encode(V, OutputStream) - Method in class io.bytestreams.codec.core.LazyCodec
- encode(V, OutputStream) - Method in class io.bytestreams.codec.core.NotImplementedCodec
- encode(V, OutputStream) - Method in class io.bytestreams.codec.core.VariableByteLengthCodec
-
Encodes the given value and writes it to the output stream.
- encode(V, OutputStream) - Method in class io.bytestreams.codec.core.VariableItemLengthCodec
-
Encodes the given value and writes it to the output stream.
- EncodeResult - Record Class in io.bytestreams.codec.core
-
Result of an
encodeoperation, containing both the logical count and the byte count written. - EncodeResult(int, int) - Constructor for record class io.bytestreams.codec.core.EncodeResult
-
Creates a new EncodeResult.
- equals(Object) - Method in class io.bytestreams.codec.core.DataObject
- equals(Object) - Method in record class io.bytestreams.codec.core.EncodeResult
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class io.bytestreams.codec.core.Recorded
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in class io.bytestreams.codec.core.TaggedData
- equals(Object) - Method in record class io.bytestreams.codec.core.util.Pair
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class io.bytestreams.codec.core.util.Triple
-
Indicates whether some other object is "equal to" this one.
F
- field(FieldSpec<T, V>) - Method in class io.bytestreams.codec.core.SequentialObjectCodec.Builder
-
Adds a field to the codec using a FieldSpec.
- field(String, Codec<V>) - Static method in class io.bytestreams.codec.core.DataObject
-
Creates a FieldSpec backed by the object's internal map.
- field(String, Codec<V>, Function<T, V>, BiConsumer<T, V>) - Method in class io.bytestreams.codec.core.SequentialObjectCodec.Builder
-
Adds a required field to the codec.
- field(String, Codec<V>, Function<T, V>, BiConsumer<T, V>, Predicate<T>) - Method in class io.bytestreams.codec.core.SequentialObjectCodec.Builder
-
Adds a field to the codec with a presence predicate.
- field(String, Codec<V>, Predicate<T>) - Static method in class io.bytestreams.codec.core.DataObject
-
Creates a FieldSpec backed by the object's internal map with a presence predicate.
- FieldSpec<T,
V> - Interface in io.bytestreams.codec.core -
Describes how to access a field on an object — its name, codec, getter, setter, and presence predicate.
- first() - Method in record class io.bytestreams.codec.core.util.Pair
-
Returns the value of the
firstrecord component. - first() - Method in record class io.bytestreams.codec.core.util.Triple
-
Returns the value of the
firstrecord component. - FixedCodePointStringCodec - Class in io.bytestreams.codec.core
-
A codec for fixed-length character strings.
- FixedHexStringCodec - Class in io.bytestreams.codec.core
-
A codec for fixed-length hexadecimal strings.
- FixedListCodec<V> - Class in io.bytestreams.codec.core
-
A codec for encoding and decoding fixed-length lists of values.
- FixedListCodec(Codec<V>, int) - Constructor for class io.bytestreams.codec.core.FixedListCodec
-
Creates a new fixed list codec that uses
ArrayListfor decoded lists. - FixedListCodec(Codec<V>, int, Supplier<List<V>>) - Constructor for class io.bytestreams.codec.core.FixedListCodec
-
Creates a new fixed list codec with a custom list factory.
- float32() - Static method in class io.bytestreams.codec.core.Codecs
-
Creates a codec for float values (IEEE 754 single-precision, 4 bytes).
- float64() - Static method in class io.bytestreams.codec.core.Codecs
-
Creates a codec for double values (IEEE 754 double-precision, 8 bytes).
- from(U) - Method in interface io.bytestreams.codec.core.util.Converter
-
Converts a value from the target type back to the source type.
- from(V) - Method in class io.bytestreams.codec.core.util.BiMap
-
Returns the key mapped to the given value.
G
- get(FieldSpec<? extends DataObject, V>) - Method in class io.bytestreams.codec.core.DataObject
-
Gets a field value using a FieldSpec.
- get(FieldSpec<? extends DataObject, V>) - Method in class io.bytestreams.codec.core.SimpleData
- get(String) - Method in class io.bytestreams.codec.core.DataObject
- get(String) - Method in class io.bytestreams.codec.core.SimpleData
- get(T) - Method in interface io.bytestreams.codec.core.FieldSpec
- getAll(K) - Method in interface io.bytestreams.codec.core.Tagged
-
Returns all values for the given tag.
- getAll(K) - Method in class io.bytestreams.codec.core.TaggedData
- getFieldPath() - Method in exception class io.bytestreams.codec.core.CodecException
-
Returns the field path as a dot-separated string.
- getMessage() - Method in exception class io.bytestreams.codec.core.CodecException
H
- hashCode() - Method in class io.bytestreams.codec.core.DataObject
- hashCode() - Method in record class io.bytestreams.codec.core.EncodeResult
-
Returns a hash code value for this object.
- hashCode() - Method in record class io.bytestreams.codec.core.Recorded
-
Returns a hash code value for this object.
- hashCode() - Method in class io.bytestreams.codec.core.TaggedData
- hashCode() - Method in record class io.bytestreams.codec.core.util.Pair
-
Returns a hash code value for this object.
- hashCode() - Method in record class io.bytestreams.codec.core.util.Triple
-
Returns a hash code value for this object.
- hex() - Static method in class io.bytestreams.codec.core.Codecs
-
Creates a variable-length hex string codec.
- hex(int) - Static method in class io.bytestreams.codec.core.Codecs
-
Creates a fixed-length hex string codec.
- hex(Codec<Integer>) - Static method in class io.bytestreams.codec.core.Codecs
-
Creates a variable-length hex string codec where the hex digit count is encoded as a prefix.
- hexByteCount(int) - Static method in class io.bytestreams.codec.core.util.Strings
-
Returns the number of bytes represented by the given number of hex digits (two digits per byte).
- hexByteCount(String) - Static method in class io.bytestreams.codec.core.util.Strings
-
Returns the number of bytes represented by the hex string (two hex digits per byte).
I
- InputStreams - Class in io.bytestreams.codec.core.util
-
Utility methods for working with input streams.
- inspect(byte[]) - Method in class io.bytestreams.codec.core.ConstantCodec
-
Returns the expected constant bytes regardless of the input value.
- inspect(Codec<?>, Object) - Static method in class io.bytestreams.codec.core.Inspector
-
Returns a structured representation of the given value by walking the codec tree.
- inspect(Recorded<T>) - Method in class io.bytestreams.codec.core.RecordingCodec
- inspect(Pair<A, B>) - Method in class io.bytestreams.codec.core.PairCodec
- inspect(Triple<A, B, C>) - Method in class io.bytestreams.codec.core.TripleCodec
- inspect(List<V>) - Method in class io.bytestreams.codec.core.FixedListCodec
- inspect(List<V>) - Method in class io.bytestreams.codec.core.StreamListCodec
- inspect(T) - Method in interface io.bytestreams.codec.core.Inspectable
-
Returns a structured representation of the given value.
- inspect(T) - Method in class io.bytestreams.codec.core.SequentialObjectCodec
- inspect(T) - Method in class io.bytestreams.codec.core.TaggedObjectCodec
- inspect(V) - Method in class io.bytestreams.codec.core.ChoiceCodec
- inspect(V) - Method in class io.bytestreams.codec.core.LazyCodec
- inspect(V) - Method in class io.bytestreams.codec.core.VariableByteLengthCodec
- inspect(V) - Method in class io.bytestreams.codec.core.VariableItemLengthCodec
- Inspectable<T> - Interface in io.bytestreams.codec.core
-
Extension point for codecs to participate in field inspection.
- Inspector - Class in io.bytestreams.codec.core
-
Produces structured representations of decoded values by walking the codec tree.
- int16() - Static method in class io.bytestreams.codec.core.Codecs
-
Creates a codec for signed short values (-32768 to 32767), encoded as 2-byte big-endian binary.
- int32() - Static method in class io.bytestreams.codec.core.Codecs
-
Creates a codec for signed integer values (-2147483648 to 2147483647), encoded as 4-byte big-endian binary.
- int64() - Static method in class io.bytestreams.codec.core.Codecs
-
Creates a codec for signed long values, encoded as 8-byte big-endian binary.
- io.bytestreams.codec.core - package io.bytestreams.codec.core
- io.bytestreams.codec.core.util - package io.bytestreams.codec.core.util
- isSingleByte(Charset) - Static method in class io.bytestreams.codec.core.util.Strings
-
Returns whether the charset uses at most one byte per character.
L
- latin1() - Static method in class io.bytestreams.codec.core.Codecs
-
Creates a variable-length ISO-8859-1 (Latin-1) string codec.
- latin1(int) - Static method in class io.bytestreams.codec.core.Codecs
-
Creates a fixed-length ISO-8859-1 (Latin-1) string codec.
- latin1(Codec<Integer>) - Static method in class io.bytestreams.codec.core.Codecs
-
Creates a variable-length ISO-8859-1 (Latin-1) string codec where the code point count is encoded as a prefix.
- lazy(Supplier<Codec<V>>) - Static method in class io.bytestreams.codec.core.Codecs
-
Creates a lazy codec that defers resolution to first use, enabling recursive definitions.
- LazyCodec<V> - Class in io.bytestreams.codec.core
-
A codec that defers resolution to first use, enabling recursive codec definitions.
- leftEvenPad(char) - Static method in class io.bytestreams.codec.core.util.Converters
- leftFitPad(char, int) - Static method in class io.bytestreams.codec.core.util.Converters
- leftPad(char, int) - Static method in class io.bytestreams.codec.core.util.Converters
- listOf(int, Codec<V>) - Static method in class io.bytestreams.codec.core.Codecs
-
Creates a fixed-length list codec that encodes/decodes exactly
lengthitems. - listOf(Codec<Integer>, Codec<V>) - Static method in class io.bytestreams.codec.core.Codecs
-
Creates a variable-length list codec where the item count is encoded as a prefix.
- listOf(Codec<V>) - Static method in class io.bytestreams.codec.core.Codecs
-
Creates a stream list codec that reads items until EOF.
N
- name() - Method in interface io.bytestreams.codec.core.FieldSpec
- NotImplementedCodec<V> - Class in io.bytestreams.codec.core
-
A codec that always throws, indicating no implementation has been provided.
- NotImplementedCodec() - Constructor for class io.bytestreams.codec.core.NotImplementedCodec
O
- of(Codec<T>) - Static method in class io.bytestreams.codec.core.RecordingCodec
-
Creates a new recording codec wrapping the given delegate.
- of(String, Codec<V>, Function<T, V>, BiConsumer<T, V>) - Static method in interface io.bytestreams.codec.core.FieldSpec
-
Creates a FieldSpec from explicit getter and setter functions.
- of(String, Codec<V>, Function<T, V>, BiConsumer<T, V>, Predicate<T>) - Static method in interface io.bytestreams.codec.core.FieldSpec
-
Creates a FieldSpec from explicit getter, setter, and presence predicate.
- of(Function<V, U>, Function<U, V>) - Static method in class io.bytestreams.codec.core.util.Converters
-
Creates a converter from two functions.
- of(Map.Entry<K, V>...) - Static method in class io.bytestreams.codec.core.util.BiMap
-
Creates a new
BiMapfrom the given entries. - ofBytes(int) - Static method in record class io.bytestreams.codec.core.EncodeResult
-
Creates a result where the logical count equals the byte count.
- ofCharset(Charset) - Static method in class io.bytestreams.codec.core.Codecs
-
Creates a variable-length string codec with the specified charset.
- ofCharset(Charset, int) - Static method in class io.bytestreams.codec.core.Codecs
-
Creates a fixed-length string codec with the specified charset.
- ofCharset(Charset, Codec<Integer>) - Static method in class io.bytestreams.codec.core.Codecs
-
Creates a variable-length string codec where the code point count is encoded as a prefix.
- ofDouble() - Static method in class io.bytestreams.codec.core.BinaryNumberCodec
-
Creates a codec for double values (IEEE 754 double-precision, 8 bytes).
- ofFloat() - Static method in class io.bytestreams.codec.core.BinaryNumberCodec
-
Creates a codec for float values (IEEE 754 single-precision, 4 bytes).
- ofInt() - Static method in class io.bytestreams.codec.core.BinaryNumberCodec
-
Creates a codec for signed integer values (-2147483648 to 2147483647).
- ofLong() - Static method in class io.bytestreams.codec.core.BinaryNumberCodec
-
Creates a codec for signed long values (-9223372036854775808 to 9223372036854775807).
- ofShort() - Static method in class io.bytestreams.codec.core.BinaryNumberCodec
-
Creates a codec for signed short values (-32768 to 32767).
- ofUnsignedByte() - Static method in class io.bytestreams.codec.core.BinaryNumberCodec
-
Creates a codec for unsigned byte values (0 to 255).
- ofUnsignedInt() - Static method in class io.bytestreams.codec.core.BinaryNumberCodec
-
Creates a codec for unsigned integer values (0 to 4294967295).
- ofUnsignedShort() - Static method in class io.bytestreams.codec.core.BinaryNumberCodec
-
Creates a codec for unsigned short values (0 to 65535).
- on(Class<S>, Codec<S>) - Method in class io.bytestreams.codec.core.ChoiceCodec.Builder
-
Registers a class/codec pair.
P
- padEnd(char, int) - Static method in class io.bytestreams.codec.core.util.Strings
-
Returns a function that pads the end of a string with the specified character until it reaches the desired length.
- padEnd(String, char, int) - Static method in class io.bytestreams.codec.core.util.Strings
-
Pads the end of a string with the specified character until it reaches the desired length.
- padStart(char, int) - Static method in class io.bytestreams.codec.core.util.Strings
-
Returns a function that pads the start of a string with the specified character until it reaches the desired length.
- padStart(String, char, int) - Static method in class io.bytestreams.codec.core.util.Strings
-
Pads the start of a string with the specified character until it reaches the desired length.
- pair(Codec<A>, Codec<B>) - Static method in class io.bytestreams.codec.core.Codecs
-
Creates a pair codec that encodes and decodes two values sequentially.
- Pair<A,
B> - Record Class in io.bytestreams.codec.core.util -
An immutable pair of two values.
- Pair(A, B) - Constructor for record class io.bytestreams.codec.core.util.Pair
-
Creates an instance of a
Pairrecord class. - PairCodec<A,
B> - Class in io.bytestreams.codec.core -
A codec that encodes and decodes a pair of values sequentially.
- Preconditions - Class in io.bytestreams.codec.core.util
-
Utility methods for checking preconditions.
- Predicates - Class in io.bytestreams.codec.core.util
-
Utility methods for creating common predicates.
- prefixed(Codec<Integer>, Codec<V>) - Static method in class io.bytestreams.codec.core.Codecs
-
Creates a variable-length codec where the byte count is encoded as a prefix.
- prefixed(Codec<Integer>, ToIntFunction<V>, IntFunction<Codec<V>>) - Static method in class io.bytestreams.codec.core.Codecs
-
Creates a variable-length codec where the item count is encoded as a prefix.
- presence() - Method in interface io.bytestreams.codec.core.FieldSpec
-
Returns the presence predicate for this field.
R
- rawBytes() - Method in record class io.bytestreams.codec.core.Recorded
-
Returns the value of the
rawBytesrecord component. - read(int) - Method in interface io.bytestreams.codec.core.util.CodePointReader
-
Reads the specified number of code points from the stream.
- readFully(InputStream, int) - Static method in class io.bytestreams.codec.core.util.InputStreams
-
Reads exactly the specified number of bytes from the input stream.
- Recorded<T> - Record Class in io.bytestreams.codec.core
-
A decoded value paired with the raw bytes it was decoded from.
- Recorded(T, byte[]) - Constructor for record class io.bytestreams.codec.core.Recorded
-
Creates an instance of a
Recordedrecord class. - RecordingCodec<T> - Class in io.bytestreams.codec.core
-
A codec that captures raw bytes during decoding, returning a
Recordedvalue containing both the decoded value and the original wire bytes. - RecordingCodec(Codec<T>) - Constructor for class io.bytestreams.codec.core.RecordingCodec
- rightEvenPad(char) - Static method in class io.bytestreams.codec.core.util.Converters
- rightFitPad(char, int) - Static method in class io.bytestreams.codec.core.util.Converters
- rightPad(char, int) - Static method in class io.bytestreams.codec.core.util.Converters
S
- second() - Method in record class io.bytestreams.codec.core.util.Pair
-
Returns the value of the
secondrecord component. - second() - Method in record class io.bytestreams.codec.core.util.Triple
-
Returns the value of the
secondrecord component. - sequential(Supplier<T>) - Static method in class io.bytestreams.codec.core.Codecs
-
Creates a new builder for a sequential object codec.
- SequentialObjectCodec<T> - Class in io.bytestreams.codec.core
-
A codec for objects with sequential fields.
- SequentialObjectCodec.Builder<T> - Class in io.bytestreams.codec.core
-
Builder for constructing a SequentialObjectCodec.
- set(FieldSpec<? extends DataObject, V>, V) - Method in class io.bytestreams.codec.core.DataObject
-
Sets a field value using a FieldSpec.
- set(FieldSpec<? extends DataObject, V>, V) - Method in class io.bytestreams.codec.core.SimpleData
- set(String, Object) - Method in class io.bytestreams.codec.core.DataObject
- set(String, Object) - Method in class io.bytestreams.codec.core.SimpleData
- set(T, V) - Method in interface io.bytestreams.codec.core.FieldSpec
- SimpleData - Class in io.bytestreams.codec.core
-
A
DataObjectwith public access to all fields. - SimpleData() - Constructor for class io.bytestreams.codec.core.SimpleData
- StreamCodePointStringCodec - Class in io.bytestreams.codec.core
-
A codec for variable-length character strings that reads all remaining bytes from the stream.
- StreamHexStringCodec - Class in io.bytestreams.codec.core
-
A codec for variable-length hexadecimal strings that reads all remaining bytes from the stream.
- StreamListCodec<V> - Class in io.bytestreams.codec.core
-
A codec for encoding and decoding lists of values by reading items until EOF.
- StreamListCodec(Codec<V>) - Constructor for class io.bytestreams.codec.core.StreamListCodec
-
Creates a new stream list codec that uses
ArrayListfor decoded lists. - StreamListCodec(Codec<V>, Supplier<List<V>>) - Constructor for class io.bytestreams.codec.core.StreamListCodec
-
Creates a new stream list codec with a custom list factory.
- Strings - Class in io.bytestreams.codec.core.util
-
Utility methods for string operations.
- stripEnd(String, char) - Static method in class io.bytestreams.codec.core.util.Strings
-
Strips trailing occurrences of the specified character from the string.
- stripStart(String, char) - Static method in class io.bytestreams.codec.core.util.Strings
-
Strips leading occurrences of the specified character from the string.
T
- tag(K, Codec<?>) - Method in class io.bytestreams.codec.core.TaggedObjectCodec.Builder
-
Registers a codec for a specific tag.
- tagged(Codec<K>) - Static method in class io.bytestreams.codec.core.Codecs
-
Creates a new builder for a tagged object codec using
TaggedData. - tagged(Supplier<T>, Codec<K>) - Static method in class io.bytestreams.codec.core.Codecs
-
Creates a new builder for a tagged object codec.
- Tagged<T,
K> - Interface in io.bytestreams.codec.core -
Interface for objects with tag-identified fields.
- TaggedData<K> - Class in io.bytestreams.codec.core
-
A ready-made
Taggedimplementation backed by a map of tag to value list. - TaggedData() - Constructor for class io.bytestreams.codec.core.TaggedData
- TaggedObjectCodec<T,
K> - Class in io.bytestreams.codec.core -
A codec for objects with tag-identified fields.
- TaggedObjectCodec.Builder<T,
K> - Class in io.bytestreams.codec.core -
Builder for constructing a TaggedObjectCodec.
- tags() - Method in interface io.bytestreams.codec.core.Tagged
-
Returns the set of tags.
- tags() - Method in class io.bytestreams.codec.core.TaggedData
- temporal(String, TemporalQuery<T>) - Static method in class io.bytestreams.codec.core.util.Converters
- third() - Method in record class io.bytestreams.codec.core.util.Triple
-
Returns the value of the
thirdrecord component. - to(K) - Method in class io.bytestreams.codec.core.util.BiMap
-
Returns the value mapped to the given key.
- to(V) - Method in interface io.bytestreams.codec.core.util.Converter
-
Converts a value from the source type to the target type.
- toInt(int) - Static method in class io.bytestreams.codec.core.util.Converters
- toLong(int) - Static method in class io.bytestreams.codec.core.util.Converters
- toString() - Method in class io.bytestreams.codec.core.DataObject
- toString() - Method in record class io.bytestreams.codec.core.EncodeResult
-
Returns a string representation of this record class.
- toString() - Method in record class io.bytestreams.codec.core.Recorded
-
Returns a string representation of this record class.
- toString() - Method in class io.bytestreams.codec.core.TaggedData
- toString() - Method in record class io.bytestreams.codec.core.util.Pair
-
Returns a string representation of this record class.
- toString() - Method in record class io.bytestreams.codec.core.util.Triple
-
Returns a string representation of this record class.
- TriFunction<A,
B, - Interface in io.bytestreams.codec.core.utilC, R> -
Represents a function that accepts three arguments and produces a result.
- triple(Codec<A>, Codec<B>, Codec<C>) - Static method in class io.bytestreams.codec.core.Codecs
-
Creates a triple codec that encodes and decodes three values sequentially.
- Triple<A,
B, - Record Class in io.bytestreams.codec.core.utilC> -
An immutable triple of three values.
- Triple(A, B, C) - Constructor for record class io.bytestreams.codec.core.util.Triple
-
Creates an instance of a
Triplerecord class. - TripleCodec<A,
B, - Class in io.bytestreams.codec.coreC> -
A codec that encodes and decodes a triple of values sequentially.
U
- uint16() - Static method in class io.bytestreams.codec.core.Codecs
-
Creates a codec for unsigned short values (0 to 65535), encoded as 2-byte big-endian binary.
- uint32() - Static method in class io.bytestreams.codec.core.Codecs
-
Creates a codec for unsigned integer values (0 to 4294967295), encoded as 4-byte big-endian binary.
- uint8() - Static method in class io.bytestreams.codec.core.Codecs
-
Creates a codec for unsigned byte values (0 to 255), encoded as 1-byte binary.
- utf8() - Static method in class io.bytestreams.codec.core.Codecs
-
Creates a variable-length UTF-8 string codec.
- utf8(int) - Static method in class io.bytestreams.codec.core.Codecs
-
Creates a fixed-length UTF-8 string codec.
- utf8(Codec<Integer>) - Static method in class io.bytestreams.codec.core.Codecs
-
Creates a variable-length UTF-8 string codec where the code point count is encoded as a prefix.
V
- value() - Method in record class io.bytestreams.codec.core.Recorded
-
Returns the value of the
valuerecord component. - VariableByteLengthCodec<V> - Class in io.bytestreams.codec.core
-
A codec for variable-length values where the byte count is encoded as a prefix.
- VariableItemLengthCodec<V> - Class in io.bytestreams.codec.core
-
A codec for variable-length values where the item count is encoded as a prefix.
W
- withField(String) - Method in exception class io.bytestreams.codec.core.CodecException
-
Creates a new CodecException with the field name prepended to the path.
X
- xmap(Converter<V, U>) - Method in interface io.bytestreams.codec.core.Codec
-
Returns a new codec that maps between types using a
Converter. - xmap(Function<V, U>, Function<U, V>) - Method in interface io.bytestreams.codec.core.Codec
-
Returns a new codec that applies bidirectional mapping functions to transform between value types.
All Classes and Interfaces|All Packages|Serialized Form