- All Implemented Interfaces:
- Closeable, AutoCloseable, ByteChannel, Channel, ReadableByteChannel, WritableByteChannel, org.jcodec.common.io.SeekableByteChannel
public class HttpChannel
extends Object
implements org.jcodec.common.io.SeekableByteChannel
This class is part of JCodec ( www.jcodec.org ) This software is distributed
under FreeBSD License
This class implements a read-only SeekableBytChannel for downloading a HTTP
resource.
Basically it wraps a URLConnection. It provides random access functionality
by closing the connection and re-establishing a new one with HTTP 1.1 Range
header to download a stream from a certain offset.
This class is the dummiest possible implementation and lacks some important
features: - caching; - re-connecting vs reading ahead for forward seeks; -
readahead and grouping of the small reads.
- Author:
- The JCodec project