public final class SMFTV1HeaderCommandAttribute extends Object implements SMFTHeaderCommandParserType
| Modifier and Type | Field and Description |
|---|---|
static String |
SYNTAX
The command syntax.
|
| Constructor and Description |
|---|
SMFTV1HeaderCommandAttribute(Map<SMFAttributeName,Integer> in_attributes_lines,
Collection<SMFAttribute> in_attributes_list,
SMFTLineReaderType in_reader,
SMFHeader.Builder in_header)
Construct a parser.
|
| Modifier and Type | Method and Description |
|---|---|
String |
name() |
SMFTParsingStatus |
parse(SMFParserEventsHeaderType receiver,
javaslang.collection.List<String> line)
Parse the section, delivering events to
receiver. |
public static final String SYNTAX
public SMFTV1HeaderCommandAttribute(Map<SMFAttributeName,Integer> in_attributes_lines, Collection<SMFAttribute> in_attributes_list, SMFTLineReaderType in_reader, SMFHeader.Builder in_header)
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 builderpublic String name()
name in interface SMFTHeaderCommandParserTypepublic SMFTParsingStatus parse(SMFParserEventsHeaderType receiver, javaslang.collection.List<String> line) throws IOException
SMFTHeaderCommandParserTypereceiver.parse in interface SMFTHeaderCommandParserTypereceiver - The event receiverline - The current lineIOException - On I/O errorsCopyright © 2017 <code@io7m.com> http://io7m.com