public final class SMFFormatBinary extends Object implements SMFParserProviderType, SMFSerializerProviderType, SMFVersionProbeProviderType
| Constructor and Description |
|---|
SMFFormatBinary()
Construct a binary format provider.
|
| Modifier and Type | Method and Description |
|---|---|
static byte[] |
magicNumber() |
SMFParserRandomAccessType |
parserCreateRandomAccess(SMFParserEventsType in_events,
URI in_uri,
FileChannel in_channel) |
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 static byte[] magicNumber()
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 in_events, URI in_uri, FileChannel in_channel) throws UnsupportedOperationException
parserCreateRandomAccess in interface SMFParserProviderTypein_events - The event receiverin_uri - The URI referred to by the input stream, for diagnostic
messagesin_channel - 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