Class FactoryAutoEntryDecoder

java.lang.Object
dev.derklaro.aerogel.auto.internal.factory.FactoryAutoEntryDecoder
All Implemented Interfaces:
AutoEntryDecoder

public final class FactoryAutoEntryDecoder extends Object implements AutoEntryDecoder
  • Constructor Details

    • FactoryAutoEntryDecoder

      public FactoryAutoEntryDecoder()
  • Method Details

    • id

      @NotNull public @NotNull String id()
      Description copied from interface: AutoEntryDecoder
      Get 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:
      id in interface AutoEntryDecoder
      Returns:
      the unique identifier of this auto entry decoder.
    • decodeEntry

      Description copied from interface: AutoEntryDecoder
      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.
      Specified by:
      decodeEntry in interface AutoEntryDecoder
      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.