Interface ISeekableInput

All Superinterfaces:
java.lang.AutoCloseable
All Known Implementing Classes:
FileSeekableInput

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

    Modifier and Type Method Description
    void close()
    Closes the input stream and free the resources.
    int read​(byte[] bytes)
    Read bytes from the input stream into the bytes array.
    void seek​(long position)
    Seeks read pointer to the specified position.
    long size()  
  • Method Details

    • read

      int read​(byte[] bytes)
      Read bytes from the input stream into the bytes array.
      Parameters:
      bytes - buffer to read data to
      Returns:
      number of bytes read.
      Throws:
      VelvetVideoException - if IO error occurs
    • seek

      void seek​(long position)
      Seeks read pointer to the specified position.
      Parameters:
      position - offset from the stream start to put the read pointer
    • size

      long size()
      Returns:
      total number of bytes in this stream
    • close

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