Class MpegTsElementaryInputStream

  • All Implemented Interfaces:
    java.io.Closeable, java.lang.AutoCloseable

    public class MpegTsElementaryInputStream
    extends java.io.InputStream
    Input stream which takes in a stream providing MPEG TS data and outputs a single track from it specified by the elementary data type.
    • Constructor Summary

      Constructors 
      Constructor Description
      MpegTsElementaryInputStream​(java.io.InputStream inputStream, int elementaryDataType)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      AudioTrackInfoProvider getLoadedMetadata()  
      int read()  
      int read​(byte[] buffer, int offset, int length)  
      • Methods inherited from class java.io.InputStream

        available, close, mark, markSupported, nullInputStream, read, readAllBytes, readNBytes, readNBytes, reset, skip, transferTo
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

    • Constructor Detail

      • MpegTsElementaryInputStream

        public MpegTsElementaryInputStream​(java.io.InputStream inputStream,
                                           int elementaryDataType)
        Parameters:
        inputStream - Underlying input stream
        elementaryDataType - ID of the media type to pass upstream
    • Method Detail

      • read

        public int read()
                 throws java.io.IOException
        Specified by:
        read in class java.io.InputStream
        Throws:
        java.io.IOException
      • read

        public int read​(byte[] buffer,
                        int offset,
                        int length)
                 throws java.io.IOException
        Overrides:
        read in class java.io.InputStream
        Throws:
        java.io.IOException