Class BasicStream

java.lang.Object
de.jarnbjo.ogg.BasicStream
All Implemented Interfaces:
PhysicalOggStream

public class BasicStream
extends java.lang.Object
implements PhysicalOggStream
  • Constructor Summary

    Constructors
    Constructor Description
    BasicStream​(java.io.InputStream sourceStream)  
  • Method Summary

    Modifier and Type Method Description
    void close()  
    int getContentLength()  
    java.util.Collection getLogicalStreams()  
    OggPage getOggPage​(int index)  
    int getPosition()  
    boolean isOpen()  
    boolean isSeekable()  
    void setTime​(long granulePosition)  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • Method Details

    • getLogicalStreams

      public java.util.Collection getLogicalStreams()
      Specified by:
      getLogicalStreams in interface PhysicalOggStream
    • isOpen

      public boolean isOpen()
      Specified by:
      isOpen in interface PhysicalOggStream
    • close

      public void close() throws java.io.IOException
      Specified by:
      close in interface PhysicalOggStream
      Throws:
      java.io.IOException
    • getContentLength

      public int getContentLength()
    • getPosition

      public int getPosition()
    • getOggPage

      public OggPage getOggPage​(int index) throws java.io.IOException
      Specified by:
      getOggPage in interface PhysicalOggStream
      Throws:
      java.io.IOException
    • setTime

      public void setTime​(long granulePosition) throws java.io.IOException
      Specified by:
      setTime in interface PhysicalOggStream
      Throws:
      java.io.IOException
    • isSeekable

      public boolean isSeekable()
      Specified by:
      isSeekable in interface PhysicalOggStream