Interface AutoEntryDecoder
- All Known Implementing Classes:
FactoryAutoEntryDecoder,ProvidesAutoEntryDecoder
-
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.
-
Method Details
-
id
-
decodeEntry
@NotNull @NotNull LazyBindingCollection decodeEntry(@NotNull @NotNull DataInput dataInput, @NotNull @NotNull ClassLoader loader) throws IOException Decodes 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.- 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.IllegalStateException- in case something goes wrong during binding deserialization.
-