Package com.io7m.smfj.parser.api
Interface SMFParserProviderType
-
- All Known Implementing Classes:
SMFFormatBinary2,SMFFormatOBJ,SMFFormatText,SMFFormatXML
@ProviderType public interface SMFParserProviderTypeThe type of parser providers.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description SMFParserRandomAccessTypeparserCreateRandomAccess(SMFParserEventsType events, java.net.URI uri, java.nio.channels.FileChannel file)SMFParserSequentialTypeparserCreateSequential(SMFParserEventsType events, java.net.URI uri, java.io.InputStream stream)SMFFormatDescriptionparserFormat()java.util.SortedSet<SMFFormatVersion>parserSupportedVersions()
-
-
-
Method Detail
-
parserFormat
SMFFormatDescription parserFormat()
- Returns:
- The format that this provider supports
-
parserSupportedVersions
java.util.SortedSet<SMFFormatVersion> parserSupportedVersions()
- Returns:
- The supported versions of the format
-
parserCreateSequential
SMFParserSequentialType parserCreateSequential(SMFParserEventsType events, java.net.URI uri, java.io.InputStream stream) throws java.lang.UnsupportedOperationException
- Parameters:
events- The event receiveruri- The URI referred to by the input stream, for diagnostic messagesstream- An input stream- Returns:
- A new parser for the format
- Throws:
java.lang.UnsupportedOperationException- If sequential parsing is not supported- See Also:
SMFFormatDescription.randomAccess()
-
parserCreateRandomAccess
SMFParserRandomAccessType parserCreateRandomAccess(SMFParserEventsType events, java.net.URI uri, java.nio.channels.FileChannel file) throws java.lang.UnsupportedOperationException
- Parameters:
events- The event receiveruri- The URI referred to by the input stream, for diagnostic messagesfile- A file channel- Returns:
- A new parser for the format
- Throws:
java.lang.UnsupportedOperationException- If random-access parsing is not supported- See Also:
SMFFormatDescription.randomAccess()
-
-