Interface LineDeserializer

All Known Implementing Classes:
CsvDeserializer, JsonDeserializer, OpenXJsonDeserializer, RegexDeserializer, SimpleDeserializer

public interface LineDeserializer
  • Field Details

    • EMPTY_LINE_DESERIALIZER

      static final LineDeserializer EMPTY_LINE_DESERIALIZER
  • Method Details

    • getTypes

      List<? extends Type> getTypes()
      Required types for the deserialize page builder.
    • deserialize

      void deserialize(LineBuffer lineBuffer, PageBuilder builder) throws IOException
      Deserialize the line into the page builder. The implementation will declare the added positions in the page builder. The implementation is allowed to add zero or more positions to the builder.
      Parameters:
      lineBuffer - the line which may be empty
      builder - page builder for the declared types
      Throws:
      IOException - if line can not be decoded and processing should stop
      RuntimeException - if line can not be decoded and processing should stop