public final class SMFFormatText extends Object implements SMFParserProviderType, SMFSerializerProviderType, SMFVersionProbeProviderType
| Constructor and Description |
|---|
SMFFormatText()
Construct a text format provider.
|
| Modifier and Type | Method and Description |
|---|---|
SMFParserRandomAccessType |
parserCreateRandomAccess(SMFParserEventsType events,
URI uri,
FileChannel file) |
SMFParserSequentialType |
parserCreateSequential(SMFParserEventsType in_events,
URI in_uri,
InputStream in_stream) |
SMFFormatDescription |
parserFormat() |
javaslang.collection.SortedSet<SMFFormatVersion> |
parserSupportedVersions() |
javaslang.control.Validation<javaslang.collection.Seq<SMFParseError>,SMFVersionProbed> |
probe(InputStream stream)
Attempt to probe the given file stream.
|
SMFSerializerType |
serializerCreate(SMFFormatVersion version,
URI uri,
OutputStream stream) |
SMFFormatDescription |
serializerFormat() |
javaslang.collection.SortedSet<SMFFormatVersion> |
serializerSupportedVersions() |
String |
toString() |
public SMFFormatDescription parserFormat()
parserFormat in interface SMFParserProviderTypepublic javaslang.collection.SortedSet<SMFFormatVersion> parserSupportedVersions()
parserSupportedVersions in interface SMFParserProviderTypepublic SMFParserSequentialType parserCreateSequential(SMFParserEventsType in_events, URI in_uri, InputStream in_stream)
parserCreateSequential in interface SMFParserProviderTypein_events - The event receiverin_uri - The URI referred to by the input stream, for diagnostic
messagesin_stream - An input streamSMFFormatDescription.randomAccess()public SMFParserRandomAccessType parserCreateRandomAccess(SMFParserEventsType events, URI uri, FileChannel file) throws UnsupportedOperationException
parserCreateRandomAccess in interface SMFParserProviderTypeevents - The event receiveruri - The URI referred to by the input stream, for diagnostic
messagesfile - A file channelUnsupportedOperationException - If random-access parsing is not
supportedSMFFormatDescription.randomAccess()public SMFFormatDescription serializerFormat()
serializerFormat in interface SMFSerializerProviderTypepublic javaslang.collection.SortedSet<SMFFormatVersion> serializerSupportedVersions()
serializerSupportedVersions in interface SMFSerializerProviderTypepublic SMFSerializerType serializerCreate(SMFFormatVersion version, URI uri, OutputStream stream) throws UnsupportedOperationException
serializerCreate in interface SMFSerializerProviderTypeversion - The format versionuri - The URI referred to by the output stream, for diagnostic
messagesstream - An output streamUnsupportedOperationException - If the given version is not
supportedpublic javaslang.control.Validation<javaslang.collection.Seq<SMFParseError>,SMFVersionProbed> probe(InputStream stream)
SMFVersionProbeProviderTypeprobe in interface SMFVersionProbeProviderTypestream - The streamCopyright © 2017 <code@io7m.com> http://io7m.com