Package com.io7m.jspiel.api
Interface RiffChunkDataWriterType
public interface RiffChunkDataWriterType
A data writer for a chunk.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
write
(SeekableByteChannel data) Called when a client is expected to write data to the given channel.
-
Method Details
-
write
Called when a client is expected to write data to the given channel. The given channel is configured such that the start of the chunk is at position0
. If the client declared that the chunk must be a certain size, then attempting to write more data than the declared size will cause the channel to raise an exception.- Parameters:
data
- The writable channel- Throws:
IOException
- On I/O errors
-