|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.glub.secureftp.bean.FTPRead
public class FTPRead
The FTPRead class is responsible for reading data from the
FTP server.
| Constructor Summary | |
|---|---|
FTPRead(ServerSocket ss,
OutputStream os)
Create a new FTPRead object to be used to retrieve binary
data actively. |
|
FTPRead(ServerSocket ss,
OutputStream os,
Progress p,
long start,
long stop)
Create a new FTPRead object to be used to retrieve binary
data with progress information actively. |
|
FTPRead(ServerSocket ss,
PrintWriter w)
Create a new FTPRead object to be used to retrieve ascii
data actively. |
|
FTPRead(ServerSocket ss,
PrintWriter w,
Progress p,
long start,
long stop)
Create a new FTPRead object to be used to retrieve ascii
data with progress information actively. |
|
FTPRead(Socket s,
OutputStream os)
Create a new FTPRead object to be used to retrieve binary
data passively. |
|
FTPRead(Socket s,
OutputStream os,
Progress p,
long start,
long stop)
Create a new FTPRead object to be used to retrieve binary
data with progress information passively. |
|
FTPRead(Socket s,
PrintWriter w)
Create a new FTPRead object to be used to retrieve ascii
data passively. |
|
FTPRead(Socket s,
PrintWriter w,
Progress p,
long start,
long stop)
Create a new FTPRead object to be used to retrieve ascii
data with progress information passively. |
|
| Method Summary | |
|---|---|
void |
abortComplete()
Called when an aborted transfer is complete. |
void |
abortTransfer()
Abort the data transfer. |
protected void |
cleanup()
Housekeeping for the data socket. |
void |
doTransfer()
Handle the data transfer. |
Socket |
getControlSocket()
Get the control socket (used for abort). |
void |
setControlSocket(Socket control)
Set the control socket (used for abort). |
void |
setZLibCompressed(boolean compressed)
Set stream as zLib compressed (mode z). |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FTPRead(Socket s,
OutputStream os)
FTPRead object to be used to retrieve binary
data passively.
s - the data socket.os - the data stream.
public FTPRead(Socket s,
OutputStream os,
Progress p,
long start,
long stop)
FTPRead object to be used to retrieve binary
data with progress information passively.
s - the data socket.os - the data stream.p - a Progress object which is used to update
download status.start - the start size of the file being downloaded
(used in progress).stop - the stop size of the file being downloaded
(used in progress).
public FTPRead(Socket s,
PrintWriter w)
FTPRead object to be used to retrieve ascii
data passively.
s - the data socket.w - the data writer.
public FTPRead(Socket s,
PrintWriter w,
Progress p,
long start,
long stop)
FTPRead object to be used to retrieve ascii
data with progress information passively.
s - the data socket.w - the data writer.p - a Progress object which is used to update
download status.start - the start size of the file being downloaded
(used in progress).stop - the stop size of the file being downloaded
(used in progress).
public FTPRead(ServerSocket ss,
OutputStream os)
FTPRead object to be used to retrieve binary
data actively.
ss - the data server socket.os - the data stream.
public FTPRead(ServerSocket ss,
OutputStream os,
Progress p,
long start,
long stop)
FTPRead object to be used to retrieve binary
data with progress information actively.
ss - the data server socket.os - the data stream.p - a Progress object which is used to update
download status.start - the start size of the file being downloaded
(used in progress).stop - the stop size of the file being downloaded
(used in progress).
public FTPRead(ServerSocket ss,
PrintWriter w)
FTPRead object to be used to retrieve ascii
data actively.
ss - the data server socket.w - the data writer.
public FTPRead(ServerSocket ss,
PrintWriter w,
Progress p,
long start,
long stop)
FTPRead object to be used to retrieve ascii
data with progress information actively.
ss - the data server socket.w - the data writer.p - a Progress object which is used to update
download status.start - the start size of the file being downloaded
(used in progress).stop - the stop size of the file being downloaded
(used in progress).| Method Detail |
|---|
public void setZLibCompressed(boolean compressed)
compressed - true if compressedpublic void setControlSocket(Socket control)
setControlSocket in interface FTPDatacontrol - the control socketpublic Socket getControlSocket()
getControlSocket in interface FTPData
public void doTransfer()
throws FTPException
doTransfer in interface FTPDataFTPException - if the FTP server returns an error.
public void abortTransfer()
throws FTPException
abortTransfer in interface FTPDataFTPException - if the FTP server returns an error.public void abortComplete()
abortComplete in interface FTPDataprotected void cleanup()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||