public class SeekableFTPStream extends SeekableStream
Constructor and Description |
---|
SeekableFTPStream(URL url) |
SeekableFTPStream(URL url,
UserPasswordInput userPasswordInput) |
Modifier and Type | Method and 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) |
long |
skip(long n) |
readFully
available, mark, markSupported, read, reset
public SeekableFTPStream(URL url) throws IOException
IOException
public SeekableFTPStream(URL url, UserPasswordInput userPasswordInput) throws IOException
IOException
public void seek(long position)
seek
in class SeekableStream
public long position()
position
in class SeekableStream
public boolean eof() throws IOException
eof
in class SeekableStream
IOException
public String getSource()
getSource
in class SeekableStream
public long length()
length
in class SeekableStream
public long skip(long n) throws IOException
skip
in class InputStream
IOException
public int read(byte[] buffer, int offset, int len) throws IOException
read
in class SeekableStream
IOException
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class SeekableStream
IOException
public int read() throws IOException
read
in class InputStream
IOException
public static void main(String[] args) throws IOException
IOException