Package org.daisy.dotify.api.obfl
Interface ObflParser
-
- All Known Implementing Classes:
ObflParserImpl
public interface ObflParser
Provides an OBFL-parser. The parser reads an OBFL-file and places its contents in a formatter instance.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description List<MetaDataItem>
getMetaData()
Gets a list of meta data items collected by the latest call toparse(XMLEventReader, Formatter)
.void
parse(XMLEventReader input, Formatter formatter)
Parses the input places its contents in the supplied formatter.
-
-
-
Method Detail
-
parse
void parse(XMLEventReader input, Formatter formatter) throws FormatterException, ObflParserException
Parses the input places its contents in the supplied formatter.- Parameters:
input
- the OBFLformatter
- the formatter- Throws:
FormatterException
- if there is a problem writing contents to the formatterObflParserException
- if there is a problem reading the OBFL
-
getMetaData
List<MetaDataItem> getMetaData()
Gets a list of meta data items collected by the latest call toparse(XMLEventReader, Formatter)
.- Returns:
- returns a list of meta data items
-
-