| Modifier and Type | Class and Description |
|---|---|
| private static class | |
| private static class | |
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv ByteBuffer | |
| pack-priv ReadableByteChannel | |
| private static int |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| pack-priv static ConnectionHolder | |
| pack-priv static ConnectionHolder | |
| pack-priv static ConnectionHolder | |
| pack-priv static ConnectionHolder | |
| public ConnectionHolder | |
| public ByteBuffer | |
| pack-priv abstract boolean | Returns: true is the source is random access, false otherwise.Detects whether the source is a random access source. |
| pack-priv abstract boolean | Returns: true if the source is seekable, false otherwise.Detects whether the source is seekable. |
| pack-priv abstract boolean | Returns: true if the source needs a buffer, false otherwise.Detects whether this source needs buffering at the pipeline level. |
| pack-priv int | Returns: - Depends on property ID.- Property ID. prop, int - Depends on property ID. value)Get or set properties. |
| pack-priv abstract int | Returns: The number of bytes read, possibly zero, or -1 if the given position is greater than or equal to the file's current size.Reads a block of data from the arbitrary position of the opened stream. |
| public int | Returns: The number of bytes read, possibly zero, or -1 if the channel has reached end-of-stream.Reads a block of data from the current position of the opened stream. |
| public abstract long | Returns: -1 if the seek request failed or new stream positionPerforms a seek request to the desired position. |
| buffer | back to summary |
|---|---|
| pack-priv ByteBuffer buffer | |
| channel | back to summary |
|---|---|
| pack-priv ReadableByteChannel channel | |
| DEFAULT_BUFFER_SIZE | back to summary |
|---|---|
| private static int DEFAULT_BUFFER_SIZE | |
| ConnectionHolder | back to summary |
|---|---|
| public ConnectionHolder() | |
| closeConnection | back to summary |
|---|---|
| public void closeConnection() Closes connection when done. Overriding methods should call this method in the beginning of their implementation. | |
| createFileConnectionHolder | back to summary |
|---|---|
| pack-priv static ConnectionHolder createFileConnectionHolder(URI uri) throws IOException | |
| createHLSConnectionHolder | back to summary |
|---|---|
| pack-priv static ConnectionHolder createHLSConnectionHolder(URI uri) | |
| createMemoryConnectionHolder | back to summary |
|---|---|
| pack-priv static ConnectionHolder createMemoryConnectionHolder(ByteBuffer buffer) | |
| createURIConnectionHolder | back to summary |
|---|---|
| pack-priv static ConnectionHolder createURIConnectionHolder(URI uri, Map<String, Object> connectionProperties) throws IOException | |
| getAudioStream | back to summary |
|---|---|
| public ConnectionHolder getAudioStream() Returns ConnectionHolder for additional audio stream if any. Currently used by HLS with EXT-X-MEDIA tag. | |
| getBuffer | back to summary |
|---|---|
| public ByteBuffer getBuffer() | |
| isRandomAccess | back to summary |
|---|---|
| pack-priv abstract boolean isRandomAccess() Detects whether the source is a random access source. If the method returns true then the source is capable of working in pull mode. To be able to work in pull mode holder must provide implementation.
| |
| isSeekable | back to summary |
|---|---|
| pack-priv abstract boolean isSeekable() Detects whether the source is seekable.
| |
| needBuffer | back to summary |
|---|---|
| pack-priv abstract boolean needBuffer() Detects whether this source needs buffering at the pipeline level. When true the pipeline contains progressbuffer after the source.
| |
| property | back to summary |
|---|---|
| pack-priv int property(int prop, int value) Get or set properties.
| |
| readBlock | back to summary |
|---|---|
| pack-priv abstract int readBlock(long position, int size) throws IOException Reads a block of data from the arbitrary position of the opened stream.
| |
| readNextBlock | back to summary |
|---|---|
| public int readNextBlock() throws IOException Reads a block of data from the current position of the opened stream.
| |
| seek | back to summary |
|---|---|
| public abstract long seek(long position) Performs a seek request to the desired position.
| |
| Modifier and Type | Field and Description |
|---|---|
| private RandomAccessFile |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public void | closeConnection()
Overrides com. Closes connection when done. |
| pack-priv boolean | isRandomAccess()
Implements abstract com. Detects whether the source is a random access source. |
| pack-priv boolean | isSeekable()
Implements abstract com. Detects whether the source is seekable. |
| pack-priv boolean | needBuffer()
Implements abstract com. Detects whether this source needs buffering at the pipeline level. |
| private ReadableByteChannel | |
| pack-priv int | readBlock(long position, int size)
Implements abstract com. Reads a block of data from the arbitrary position of the opened stream. |
| public long | seek(long position)
Implements abstract com. Performs a seek request to the desired position. |
| file | back to summary |
|---|---|
| private RandomAccessFile file | |
| FileConnectionHolder | back to summary |
|---|---|
| pack-priv FileConnectionHolder(URI uri) throws IOException | |
| closeConnection | back to summary |
|---|---|
| public void closeConnection() Overrides com. Doc from com. Closes connection when done. Overriding methods should call this method in the beginning of their implementation.
| |
| isRandomAccess | back to summary |
|---|---|
| pack-priv boolean isRandomAccess() Implements abstract com. Doc from com. Detects whether the source is a random access source. If the method returns true then the source is capable of working in pull mode. To be able to work in pull mode holder must provide implementation.
| |
| isSeekable | back to summary |
|---|---|
| pack-priv boolean isSeekable() Implements abstract com. Doc from com. Detects whether the source is seekable.
| |
| needBuffer | back to summary |
|---|---|
| pack-priv boolean needBuffer() Implements abstract com. Doc from com. Detects whether this source needs buffering at the pipeline level. When true the pipeline contains progressbuffer after the source.
| |
| openFile | back to summary |
|---|---|
| private ReadableByteChannel openFile(final URI uri) throws IOException | |
| readBlock | back to summary |
|---|---|
| pack-priv int readBlock(long position, int size) throws IOException Implements abstract com. Doc from com. Reads a block of data from the arbitrary position of the opened stream.
| |
| seek | back to summary |
|---|---|
| public long seek(long position) Implements abstract com. Doc from com. Performs a seek request to the desired position.
| |
| Modifier and Type | Field and Description |
|---|---|
| private final ByteBuffer |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | closeConnection()
Overrides com. Closes connection when done. |
| pack-priv boolean | isRandomAccess()
Implements abstract com. Detects whether the source is a random access source. |
| pack-priv boolean | isSeekable()
Implements abstract com. Detects whether the source is seekable. |
| pack-priv boolean | needBuffer()
Implements abstract com. Detects whether this source needs buffering at the pipeline level. |
| pack-priv int | readBlock(long position, int size)
Implements abstract com. Reads a block of data from the arbitrary position of the opened stream. |
| public long | seek(long position)
Implements abstract com. Performs a seek request to the desired position. |
| backingBuffer | back to summary |
|---|---|
| private final ByteBuffer backingBuffer | |
| MemoryConnectionHolder | back to summary |
|---|---|
| public MemoryConnectionHolder(ByteBuffer buf) | |
| closeConnection | back to summary |
|---|---|
| public void closeConnection() Overrides com. Doc from com. Closes connection when done. Overriding methods should call this method in the beginning of their implementation.
| |
| isRandomAccess | back to summary |
|---|---|
| pack-priv boolean isRandomAccess() Implements abstract com. Doc from com. Detects whether the source is a random access source. If the method returns true then the source is capable of working in pull mode. To be able to work in pull mode holder must provide implementation.
| |
| isSeekable | back to summary |
|---|---|
| pack-priv boolean isSeekable() Implements abstract com. Doc from com. Detects whether the source is seekable.
| |
| needBuffer | back to summary |
|---|---|
| pack-priv boolean needBuffer() Implements abstract com. Doc from com. Detects whether this source needs buffering at the pipeline level. When true the pipeline contains progressbuffer after the source.
| |
| readBlock | back to summary |
|---|---|
| pack-priv int readBlock(long position, int size) throws IOException Implements abstract com. Doc from com. Reads a block of data from the arbitrary position of the opened stream.
| |
| seek | back to summary |
|---|---|
| public long seek(long position) Implements abstract com. Doc from com. Performs a seek request to the desired position.
| |
| Modifier and Type | Field and Description |
|---|---|
| private URI | |
| private URLConnection |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public void | closeConnection()
Overrides com. Closes connection when done. |
| private boolean | |
| pack-priv boolean | isRandomAccess()
Implements abstract com. Detects whether the source is a random access source. |
| private boolean | |
| pack-priv boolean | isSeekable()
Implements abstract com. Detects whether the source is seekable. |
| pack-priv boolean | needBuffer()
Implements abstract com. Detects whether this source needs buffering at the pipeline level. |
| private ReadableByteChannel | |
| pack-priv int | readBlock(long position, int size)
Implements abstract com. Reads a block of data from the arbitrary position of the opened stream. |
| public long | seek(long position)
Implements abstract com. Performs a seek request to the desired position. |
| uri | back to summary |
|---|---|
| private URI uri | |
| urlConnection | back to summary |
|---|---|
| private URLConnection urlConnection | |
| URIConnectionHolder | back to summary |
|---|---|
| pack-priv URIConnectionHolder(URI uri, Map<String, Object> connectionProperties) throws IOException | |
| closeConnection | back to summary |
|---|---|
| public void closeConnection() Overrides com. Doc from com. Closes connection when done. Overriding methods should call this method in the beginning of their implementation.
| |
| isJRT | back to summary |
|---|---|
| private boolean isJRT() | |
| isRandomAccess | back to summary |
|---|---|
| pack-priv boolean isRandomAccess() Implements abstract com. Doc from com. Detects whether the source is a random access source. If the method returns true then the source is capable of working in pull mode. To be able to work in pull mode holder must provide implementation.
| |
| isResource | back to summary |
|---|---|
| private boolean isResource() | |
| isSeekable | back to summary |
|---|---|
| pack-priv boolean isSeekable() Implements abstract com. Doc from com. Detects whether the source is seekable.
| |
| needBuffer | back to summary |
|---|---|
| pack-priv boolean needBuffer() Implements abstract com. Doc from com. Detects whether this source needs buffering at the pipeline level. When true the pipeline contains progressbuffer after the source.
| |
| openChannel | back to summary |
|---|---|
| private ReadableByteChannel openChannel(InputStream inputStream) throws IOException | |
| readBlock | back to summary |
|---|---|
| pack-priv int readBlock(long position, int size) throws IOException Implements abstract com. Doc from com. Reads a block of data from the arbitrary position of the opened stream.
| |
| seek | back to summary |
|---|---|
| public long seek(long position) Implements abstract com. Doc from com. Performs a seek request to the desired position.
| |