Interface RiffChunkDataWriterType


  • public interface RiffChunkDataWriterType
    A data writer for a chunk.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void write​(java.nio.channels.SeekableByteChannel data)
      Called when a client is expected to write data to the given channel.
    • Method Detail

      • write

        void write​(java.nio.channels.SeekableByteChannel data)
            throws java.io.IOException
        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 position 0. 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:
        java.io.IOException - On I/O errors