Package com.io7m.smfj.format.text.v1
Class SMFTV1BodySectionParserTriangles
- java.lang.Object
-
- com.io7m.smfj.format.text.v1.SMFTV1BodySectionParserTriangles
-
- All Implemented Interfaces:
SMFTBodySectionParserType
public final class SMFTV1BodySectionParserTriangles extends java.lang.Object implements SMFTBodySectionParserType
A parser for the "triangles" body section.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
SYNTAX
The command syntax.
-
Constructor Summary
Constructors Constructor Description SMFTV1BodySectionParserTriangles(java.util.function.Supplier<SMFHeader> in_header_get, SMFTLineReaderType in_reader, java.util.BitSet in_state)
Construct a parser.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
name()
SMFTParsingStatus
parse(SMFParserEventsBodyType receiver, java.util.List<java.lang.String> line_start)
Parse the section, delivering events toreceiver
.
-
-
-
Field Detail
-
SYNTAX
public static final java.lang.String SYNTAX
The command syntax.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
SMFTV1BodySectionParserTriangles
public SMFTV1BodySectionParserTriangles(java.util.function.Supplier<SMFHeader> in_header_get, SMFTLineReaderType in_reader, java.util.BitSet in_state)
Construct a parser.- Parameters:
in_header_get
- A function that yields a headerin_reader
- A line readerin_state
- The current state
-
-
Method Detail
-
name
public java.lang.String name()
- Specified by:
name
in interfaceSMFTBodySectionParserType
- Returns:
- The name of the body section
-
parse
public SMFTParsingStatus parse(SMFParserEventsBodyType receiver, java.util.List<java.lang.String> line_start) throws java.io.IOException
Description copied from interface:SMFTBodySectionParserType
Parse the section, delivering events toreceiver
.- Specified by:
parse
in interfaceSMFTBodySectionParserType
- Parameters:
receiver
- The event receiverline_start
- The current line- Returns:
- The result of parsing
- Throws:
java.io.IOException
- On I/O errors
-
-