public interface EXROutputStream
Modifier and Type | Method and Description |
---|---|
long |
position()
Get the current writing position, in bytes from the beginning of the
stream.
|
EXROutputStream |
position(long pos)
Set the current position.
|
void |
write(ByteBuffer src)
Write to the stream.
|
void write(ByteBuffer src) throws EXRIOException
write(dst)
writes n bytes to the stream, where
n is the number of bytes remaining in the buffer, that is,
dst.remaining()
, at the moment this method is invoked. The bytes
are written from the current position of the buffer.
If an I/O error occurs, write(dst)
throws an exception.
src
- The buffer from which bytes are to be transferredEXRIOException
- if an I/O error occurs.long position() throws EXRIOException
write()
will write the first byte in
the stream, position()
returns 0.EXRIOException
- if an I/O error occurs.EXROutputStream position(long pos) throws EXRIOException
position(i)
,
position()
returns i.pos
- the new writing position.EXRIOException