Package com.io7m.smfj.parser.api

## Interface SMFParserEventsHeaderType

- All Superinterfaces:
    `SMFParserEventsErrorType`
  All Known Implementing Classes:
    `CommandProbe`, `SMFFCopier`, `SMFMemoryMeshProducer`, `SMFParserEventsHeaderIgnoringReceiver`

      public interface SMFParserEventsHeaderType
      extends SMFParserEventsErrorType

  Events related to the parsing of headers.

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `java.util.Optional<SMFParserEventsBodyType>` | `onHeaderParsed​(SMFHeader header)` | Parsing of the header was successful.

    - ### Methods inherited from interface com.io7m.smfj.parser.api.SMFParserEventsErrorType

      `onError, onWarning`

- - ### Method Detail

    - #### onHeaderParsed

          java.util.Optional<SMFParserEventsBodyType> onHeaderParsed​(SMFHeader header)

      Parsing of the header was successful. The function must return an event receiver if it wishes parsing to continue.
      Parameters:
        `header` - The parsed header
      Returns:
        An event receiver