public final class SMFBDataStreamWriter extends Object implements SMFBDataStreamWriterType
SMFBDataStreamWriterType interface.| Modifier and Type | Method and Description |
|---|---|
static SMFBDataStreamWriterType |
create(URI in_uri,
OutputStream in_stream)
Create a data stream writer.
|
void |
pad(long count,
byte value)
Insert
count octets of padding. |
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() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcheckAlignment, isAligned, padTopublic static SMFBDataStreamWriterType create(URI in_uri, OutputStream in_stream)
in_uri - The uriin_stream - The streampublic long position()
position in interface SMFBDataStreamWriterTypepublic URI uri()
uri in interface SMFBDataStreamWriterTypepublic void putBytes(byte[] data)
throws IOException
SMFBDataStreamWriterTypeputBytes in interface SMFBDataStreamWriterTypedata - The bytesIOException - On I/O errorspublic void putS8(long value)
throws IOException
SMFBDataStreamWriterTypeputS8 in interface SMFBDataStreamWriterTypevalue - The valueIOException - On I/O errorspublic void putU8(long value)
throws IOException
SMFBDataStreamWriterTypeputU8 in interface SMFBDataStreamWriterTypevalue - The valueIOException - On I/O errorspublic void putStringPadded(String text, int maximum) throws IOException
SMFBDataStreamWriterTypemaximum
octets.putStringPadded in interface SMFBDataStreamWriterTypetext - The stringmaximum - The maximum lengthIOException - On I/O errorspublic void putU16(long value)
throws IOException
SMFBDataStreamWriterTypeputU16 in interface SMFBDataStreamWriterTypevalue - The valueIOException - On I/O errorspublic void putU32(long value)
throws IOException
SMFBDataStreamWriterTypeputU32 in interface SMFBDataStreamWriterTypevalue - The valueIOException - On I/O errorspublic void putU64(long value)
throws IOException
SMFBDataStreamWriterTypeputU64 in interface SMFBDataStreamWriterTypevalue - The valueIOException - On I/O errorspublic void putS16(long value)
throws IOException
SMFBDataStreamWriterTypeputS16 in interface SMFBDataStreamWriterTypevalue - The valueIOException - On I/O errorspublic void putS32(long value)
throws IOException
SMFBDataStreamWriterTypeputS32 in interface SMFBDataStreamWriterTypevalue - The valueIOException - On I/O errorspublic void putS64(long value)
throws IOException
SMFBDataStreamWriterTypeputS64 in interface SMFBDataStreamWriterTypevalue - The valueIOException - On I/O errorspublic void putF16(double value)
throws IOException
SMFBDataStreamWriterTypeputF16 in interface SMFBDataStreamWriterTypevalue - The valueIOException - On I/O errorspublic void putF32(double value)
throws IOException
SMFBDataStreamWriterTypeputF32 in interface SMFBDataStreamWriterTypevalue - The valueIOException - On I/O errorspublic void putF64(double value)
throws IOException
SMFBDataStreamWriterTypeputF64 in interface SMFBDataStreamWriterTypevalue - The valueIOException - On I/O errorspublic void pad(long count,
byte value)
throws IOException
SMFBDataStreamWriterTypecount octets of padding.pad in interface SMFBDataStreamWriterTypecount - The octet countvalue - The padding valueIOException - On I/O errorsCopyright © 2017 <code@io7m.com> http://io7m.com