Class FactoryAutoEntryDecoder
java.lang.Object
dev.derklaro.aerogel.auto.internal.factory.FactoryAutoEntryDecoder
- All Implemented Interfaces:
AutoEntryDecoder
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondecodeEntry(@NotNull DataInput dataInput, @NotNull ClassLoader loader) Decodes an entry based on the given data input.id()Get the unique identifier of this auto entry decoder.
-
Constructor Details
-
FactoryAutoEntryDecoder
public FactoryAutoEntryDecoder()
-
-
Method Details
-
id
Description copied from interface:AutoEntryDecoderGet the unique identifier of this auto entry decoder. A decoder is called based on the id written into the given input data stream (each entry must be prefixed with the decoder id to use).- Specified by:
idin interfaceAutoEntryDecoder- Returns:
- the unique identifier of this auto entry decoder.
-
decodeEntry
@NotNull public @NotNull LazyBindingCollection decodeEntry(@NotNull @NotNull DataInput dataInput, @NotNull @NotNull ClassLoader loader) throws IOException Description copied from interface:AutoEntryDecoderDecodes an entry based on the given data input. This decoder must make sure to read all the data that was written during serialization so that the cursor position is at the head for the next deserialization step.- Specified by:
decodeEntryin interfaceAutoEntryDecoder- Parameters:
dataInput- the data input to read the necessary information from to decode the entry.loader- the class loader to use when decoding types.- Returns:
- a collection of entries that were decoded from the given data input.
- Throws:
IOException- if an I/O error occurs while reading from the given data input.
-