Class MpegReader.Chain
- java.lang.Object
-
- com.sedmelluq.discord.lavaplayer.container.mpeg.reader.MpegReader.Chain
-
- Enclosing class:
- MpegReader
public static class MpegReader.Chain extends java.lang.ObjectChild element processing helper class.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MpegReader.Chainhandle(java.lang.String type, boolean finish, MpegSectionHandler handler)MpegReader.Chainhandle(java.lang.String type, MpegSectionHandler handler)MpegReader.ChainhandleVersioned(java.lang.String type, boolean finish, MpegVersionedSectionHandler handler)MpegReader.ChainhandleVersioned(java.lang.String type, MpegVersionedSectionHandler handler)voidrun()Process the current section with all the handlers specified so farMpegReader.ChainstopChecker(MpegParseStopChecker stopChecker)Assign a parsing stop checker to this chain.
-
-
-
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 specifiedhandler- 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 specifiedfinish- Whether to stop reading after this sectionhandler- 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 specifiedhandler- 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 specifiedfinish- Whether to stop reading after this sectionhandler- 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.IOExceptionProcess the current section with all the handlers specified so far- Throws:
java.io.IOException- On read error
-
-