public interface SMFBDataStreamReaderType
| Modifier and Type | Method and Description |
|---|---|
long |
position() |
com.io7m.jlexing.core.LexicalPosition<URI> |
positionLexical() |
void |
readBytes(Optional<String> name,
byte[] b)
Read exactly
b.length octets from the stream, raising an error
if too few octets are available. |
double |
readF16(Optional<String> name)
Read an IEEE754-binary16 value from the stream.
|
double |
readF32(Optional<String> name)
Read an IEEE754-binary32 value from the stream.
|
double |
readF64(Optional<String> name)
Read an IEEE754-binary64 value from the stream.
|
long |
readS16(Optional<String> name)
Read a signed 16-bit value from the stream.
|
long |
readS32(Optional<String> name)
Read a signed 32-bit value from the stream.
|
long |
readS64(Optional<String> name)
Read a signed 64-bit value from the stream.
|
long |
readS8(Optional<String> name)
Read a signed 8-bit value from the stream.
|
long |
readU16(Optional<String> name)
Read an unsigned 16-bit value from the stream.
|
long |
readU32(Optional<String> name)
Read an unsigned 32-bit value from the stream.
|
long |
readU64(Optional<String> name)
Read an unsigned 64-bit value from the stream.
|
long |
readU8(Optional<String> name)
Read an unsigned 8-bit value from the stream.
|
void |
skip(long count)
Skip ahead
count octets in the stream. |
default void |
skipTo(long offset)
Skip to the given offset.
|
URI |
uri() |
SMFBDataStreamReaderType |
withBounds(long size)
Create a new view of this reader that is only allowed to read
size
more octets from the current stream. |
URI uri()
void readBytes(Optional<String> name, byte[] b) throws IOException
b.length octets from the stream, raising an error
if too few octets are available.name - A field name for precise error reportingb - The output octetsIOException - On I/O errorslong position()
long readU8(Optional<String> name) throws IOException
name - A field name for precise error reportingIOException - On I/O errorslong readS8(Optional<String> name) throws IOException
name - A field name for precise error reportingIOException - On I/O errorslong readU16(Optional<String> name) throws IOException
name - A field name for precise error reportingIOException - On I/O errorslong readS16(Optional<String> name) throws IOException
name - A field name for precise error reportingIOException - On I/O errorslong readU32(Optional<String> name) throws IOException
name - A field name for precise error reportingIOException - On I/O errorslong readS32(Optional<String> name) throws IOException
name - A field name for precise error reportingIOException - On I/O errorslong readU64(Optional<String> name) throws IOException
name - A field name for precise error reportingIOException - On I/O errorslong readS64(Optional<String> name) throws IOException
name - A field name for precise error reportingIOException - On I/O errorsdouble readF16(Optional<String> name) throws IOException
name - A field name for precise error reportingIOException - On I/O errorsdouble readF32(Optional<String> name) throws IOException
name - A field name for precise error reportingIOException - On I/O errorsdouble readF64(Optional<String> name) throws IOException
name - A field name for precise error reportingIOException - On I/O errorsvoid skip(long count) throws IOException
count octets in the stream.count - The number of octets to skipIOException - On I/O errorscom.io7m.jlexing.core.LexicalPosition<URI> positionLexical()
SMFBDataStreamReaderType withBounds(long size)
size
more octets from the current stream. Reading from the newly created reader
will advance the position of the current reader as well.size - The maximum number of octets that can be readdefault void skipTo(long offset)
throws IOException
offset - The offsetIOException - On I/O errorsCopyright © 2017 <code@io7m.com> http://io7m.com