public interface SMFBDataStreamWriterType
| Modifier and Type | Method and Description |
|---|---|
default void |
checkAlignment(int alignment)
Check that the writer is currently on an
alignment-octet boundary. |
default boolean |
isAligned(int alignment) |
void |
pad(long count,
byte value)
Insert
count octets of padding. |
default void |
padTo(long offset,
byte value)
Insert padding up to
offset. |
long |
position() |
void |
putBytes(byte[] data)
Write the given bytes to the stream.
|
void |
putF16(double value)
Write an IEEE754-binary16 value to the stream.
|
void |
putF32(double value)
Write an IEEE754-binary32 value to the stream.
|
void |
putF64(double value)
Write an IEEE754-binary64 value to the stream.
|
void |
putS16(long value)
Write a signed 16-bit value to the stream.
|
void |
putS32(long value)
Write a signed 32-bit value to the stream.
|
void |
putS64(long value)
Write a signed 64-bit value to the stream.
|
void |
putS8(long value)
Write a signed 8-bit value to the stream.
|
void |
putStringPadded(String text,
int maximum)
Write a string to the stream in UTF-8 encoding, writing as many 0-bytes
as necessary after the string to bring it up to a size of
maximum
octets. |
void |
putU16(long value)
Write an unsigned 16-bit value to the stream.
|
void |
putU32(long value)
Write an unsigned 32-bit value to the stream.
|
void |
putU64(long value)
Write an unsigned 64-bit value to the stream.
|
void |
putU8(long value)
Write an unsigned 8-bit value to the stream.
|
URI |
uri() |
long position()
URI uri()
default boolean isAligned(int alignment)
alignment - The boundarytrue iff the writer is currently on an alignment-octet boundarydefault void checkAlignment(int alignment)
throws IOException
alignment-octet boundary.alignment - The boundaryIOException - On I/O errors, or if the writer is not alignedvoid putBytes(byte[] data)
throws IOException
data - The bytesIOException - On I/O errorsvoid putS8(long value)
throws IOException
value - The valueIOException - On I/O errorsvoid putU8(long value)
throws IOException
value - The valueIOException - On I/O errorsvoid putStringPadded(String text, int maximum) throws IOException
maximum
octets.text - The stringmaximum - The maximum lengthIOException - On I/O errorsvoid putU16(long value)
throws IOException
value - The valueIOException - On I/O errorsvoid putU32(long value)
throws IOException
value - The valueIOException - On I/O errorsvoid putU64(long value)
throws IOException
value - The valueIOException - On I/O errorsvoid putS16(long value)
throws IOException
value - The valueIOException - On I/O errorsvoid putS32(long value)
throws IOException
value - The valueIOException - On I/O errorsvoid putS64(long value)
throws IOException
value - The valueIOException - On I/O errorsvoid putF16(double value)
throws IOException
value - The valueIOException - On I/O errorsvoid putF32(double value)
throws IOException
value - The valueIOException - On I/O errorsvoid putF64(double value)
throws IOException
value - The valueIOException - On I/O errorsvoid pad(long count,
byte value)
throws IOException
count octets of padding.count - The octet countvalue - The padding valueIOException - On I/O errorsdefault void padTo(long offset,
byte value)
throws IOException
offset. Has no effect if the writer has
already passed offset.offset - The octet countvalue - The padding valueIOException - On I/O errorsCopyright © 2017 <code@io7m.com> http://io7m.com