public class SeekableHTTPStream extends SeekableStream
mark
Constructor and Description |
---|
SeekableHTTPStream(java.net.URL url) |
SeekableHTTPStream(java.net.URL url,
java.net.Proxy proxy) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
boolean |
eof() |
java.lang.String |
getSource() |
long |
length() |
long |
position() |
int |
read() |
int |
read(byte[] buffer,
int offset,
int len) |
void |
seek(long position)
Seeks the stream to the provided position.
|
long |
skip(long n) |
available, mark, markSupported, readFully, reset
public SeekableHTTPStream(java.net.URL url)
public SeekableHTTPStream(java.net.URL url, java.net.Proxy proxy)
public long position()
position
in class SeekableStream
public long length()
length
in class SeekableStream
public long skip(long n) throws java.io.IOException
skip
in class java.io.InputStream
java.io.IOException
public boolean eof() throws java.io.IOException
eof
in class SeekableStream
true
if the stream is already consumed; false
otherwise.java.io.IOException
public void seek(long position)
SeekableStream
seek
in class SeekableStream
public int read(byte[] buffer, int offset, int len) throws java.io.IOException
read
in class SeekableStream
java.io.IOException
public void close() throws java.io.IOException
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
close
in class SeekableStream
java.io.IOException
public int read() throws java.io.IOException
read
in class java.io.InputStream
java.io.IOException
public java.lang.String getSource()
getSource
in class SeekableStream