Interface ISeekableOutput

All Superinterfaces:
java.lang.AutoCloseable
All Known Implementing Classes:
FileSeekableOutput, MemSeekableFile

public interface ISeekableOutput
extends java.lang.AutoCloseable
Input stream with capability of seeking.
  • Method Summary

    Modifier and Type Method Description
    void close()
    Closes the output stream and frees the resources.
    void seek​(long position)
    Seeks the write pointer to a specified position.
    void write​(byte[] bytes)
    Writes bytes from bytes array into the output stream.
  • Method Details

    • write

      void write​(byte[] bytes)
      Writes bytes from bytes array into the output stream.
      Parameters:
      bytes - buffer to write data from
      Throws:
      VelvetVideoException - if IO error occurs
    • seek

      void seek​(long position)
      Seeks the write pointer to a specified position.
      Parameters:
      position - position to seek in bytes from the stream beginning
    • close

      void close()
      Closes the output stream and frees the resources.
      Specified by:
      close in interface java.lang.AutoCloseable