Package com.io7m.smfj.format.text.v1
Class SMFTV1HeaderCommandAttribute
- java.lang.Object
-
- com.io7m.smfj.format.text.v1.SMFTV1HeaderCommandAttribute
-
- All Implemented Interfaces:
SMFTHeaderCommandParserType
public final class SMFTV1HeaderCommandAttribute extends java.lang.Object implements SMFTHeaderCommandParserType
A parser for the "attribute" command.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
SYNTAX
The command syntax.
-
Constructor Summary
Constructors Constructor Description SMFTV1HeaderCommandAttribute(java.util.Map<SMFAttributeName,java.lang.Integer> in_attributes_lines, java.util.Collection<SMFAttribute> in_attributes_list, SMFTLineReaderType in_reader, SMFHeader.Builder in_header)
Construct a parser.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
name()
SMFTParsingStatus
parse(SMFParserEventsHeaderType receiver, java.util.List<java.lang.String> line)
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
-
SMFTV1HeaderCommandAttribute
public SMFTV1HeaderCommandAttribute(java.util.Map<SMFAttributeName,java.lang.Integer> in_attributes_lines, java.util.Collection<SMFAttribute> in_attributes_list, SMFTLineReaderType in_reader, SMFHeader.Builder in_header)
Construct a parser.- Parameters:
in_attributes_lines
- A map that keeps track of the line numbers of other attribute commandsin_attributes_list
- The current attributes in declaration orderin_reader
- A line readerin_header
- A header builder
-
-
Method Detail
-
name
public java.lang.String name()
- Specified by:
name
in interfaceSMFTHeaderCommandParserType
- Returns:
- The name of the header command
-
parse
public SMFTParsingStatus parse(SMFParserEventsHeaderType receiver, java.util.List<java.lang.String> line) throws java.io.IOException
Description copied from interface:SMFTHeaderCommandParserType
Parse the section, delivering events toreceiver
.- Specified by:
parse
in interfaceSMFTHeaderCommandParserType
- Parameters:
receiver
- The event receiverline
- The current line- Returns:
- The result of parsing
- Throws:
java.io.IOException
- On I/O errors
-
-