public class SeekableFTPStream extends SeekableStream
mark| Constructor and Description |
|---|
SeekableFTPStream(java.net.URL url) |
SeekableFTPStream(java.net.URL url,
UserPasswordInput userPasswordInput) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
boolean |
eof() |
java.lang.String |
getSource() |
long |
length() |
static void |
main(java.lang.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) |
available, mark, markSupported, readFully, resetpublic SeekableFTPStream(java.net.URL url)
throws java.io.IOException
java.io.IOExceptionpublic SeekableFTPStream(java.net.URL url,
UserPasswordInput userPasswordInput)
throws java.io.IOException
java.io.IOExceptionpublic void seek(long position)
SeekableStreamseek in class SeekableStreampublic long position()
position in class SeekableStreampublic boolean eof()
throws java.io.IOException
eof in class SeekableStreamtrue if the stream is already consumed; false otherwise.java.io.IOExceptionpublic java.lang.String getSource()
getSource in class SeekableStreampublic long length()
length in class SeekableStreampublic long skip(long n)
throws java.io.IOException
skip in class java.io.InputStreamjava.io.IOExceptionpublic int read(byte[] buffer,
int offset,
int len)
throws java.io.IOException
read in class SeekableStreamjava.io.IOExceptionpublic void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in class SeekableStreamjava.io.IOExceptionpublic int read()
throws java.io.IOException
read in class java.io.InputStreamjava.io.IOExceptionpublic static void main(java.lang.String[] args)
throws java.io.IOException
java.io.IOException