Class MpegReader.Chain

  • Enclosing class:
    MpegReader

    public static class MpegReader.Chain
    extends java.lang.Object
    Child element processing helper class.
    • Method Detail

      • handle

        public MpegReader.Chain handle​(java.lang.String type,
                                       MpegSectionHandler handler)
        Parameters:
        type - The FourCC of the section for which a handler is specified
        handler - The handler
        Returns:
        this
      • handle

        public MpegReader.Chain handle​(java.lang.String type,
                                       boolean finish,
                                       MpegSectionHandler handler)
        Parameters:
        type - The FourCC of the section for which a handler is specified
        finish - Whether to stop reading after this section
        handler - The handler
        Returns:
        this
      • handleVersioned

        public MpegReader.Chain handleVersioned​(java.lang.String type,
                                                MpegVersionedSectionHandler handler)
        Parameters:
        type - The FourCC of the section for which a handler is specified
        handler - The handler which expects versioned section info
        Returns:
        this
      • handleVersioned

        public MpegReader.Chain handleVersioned​(java.lang.String type,
                                                boolean finish,
                                                MpegVersionedSectionHandler handler)
        Parameters:
        type - The FourCC of the section for which a handler is specified
        finish - Whether to stop reading after this section
        handler - The handler which expects versioned section info
        Returns:
        this
      • stopChecker

        public MpegReader.Chain stopChecker​(MpegParseStopChecker stopChecker)
        Assign a parsing stop checker to this chain.
        Parameters:
        stopChecker - Stop checker.
        Returns:
        this
      • run

        public void run()
                 throws java.io.IOException
        Process the current section with all the handlers specified so far
        Throws:
        java.io.IOException - On read error