public class SeekableHTTPStream extends SeekableStream
| Constructor and Description |
|---|
SeekableHTTPStream(URL url) |
SeekableHTTPStream(URL url,
Proxy proxy) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
boolean |
eof() |
String |
getSource() |
long |
length() |
long |
position() |
int |
read() |
int |
read(byte[] buffer,
int offset,
int len) |
void |
seek(long position) |
long |
skip(long n) |
readFullyavailable, mark, markSupported, read, resetpublic SeekableHTTPStream(URL url)
public long position()
position in class SeekableStreampublic long length()
length in class SeekableStreampublic long skip(long n)
throws IOException
skip in class InputStreamIOExceptionpublic boolean eof()
throws IOException
eof in class SeekableStreamIOExceptionpublic void seek(long position)
seek in class SeekableStreampublic int read(byte[] buffer,
int offset,
int len)
throws IOException
read in class SeekableStreamIOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class SeekableStreamIOExceptionpublic int read()
throws IOException
read in class InputStreamIOExceptionpublic String getSource()
getSource in class SeekableStream