Closeable, AutoCloseablepublic class SeekableFTPStream extends SeekableStream
mark| Constructor | Description |
|---|---|
SeekableFTPStream(URL url) |
|
SeekableFTPStream(URL url,
UserPasswordInput userPasswordInput) |
| Modifier and Type | Method | Description |
|---|---|---|
void |
close() |
|
boolean |
eof() |
|
String |
getSource() |
|
long |
length() |
|
static void |
main(String[] args) |
|
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) |
read, readAllBytes, readNBytes, transferToclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitavailable, mark, markSupported, readFully, resetpublic SeekableFTPStream(URL url) throws IOException
IOExceptionpublic SeekableFTPStream(URL url, UserPasswordInput userPasswordInput) throws IOException
IOExceptionpublic void seek(long position)
SeekableStreamseek in class SeekableStreampublic long position()
position in class SeekableStreampublic boolean eof()
throws IOException
eof in class SeekableStreamtrue if the stream is already consumed; false otherwise.IOExceptionpublic String getSource()
getSource in class SeekableStreampublic long length()
length in class SeekableStreampublic long skip(long n)
throws IOException
skip in class InputStreamIOExceptionpublic int read(byte[] buffer,
int offset,
int len)
throws IOException
read in class SeekableStreamIOExceptionpublic void close()
throws IOException
close in interface AutoCloseableclose in interface Closeableclose in class SeekableStreamIOExceptionpublic int read()
throws IOException
read in class InputStreamIOExceptionpublic static void main(String[] args) throws IOException
IOException