|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.glub.secureftp.bean.FTPWrite
public class FTPWrite
The FTPWrite class is responsible for writing data from the
FTP server.
| Constructor Summary | |
|---|---|
FTPWrite(ServerSocket ss,
BufferedReader r)
Create a new FTPWrite object to be used to send ascii
data actively. |
|
FTPWrite(ServerSocket ss,
BufferedReader r,
Progress p,
long start,
long stop)
Create a new FTPWrite object to be used to send ascii
data with progress information actively. |
|
FTPWrite(ServerSocket ss,
InputStream is)
Create a new FTPWrite object to be used to send binary
data actively. |
|
FTPWrite(ServerSocket ss,
InputStream is,
Progress p,
long start,
long stop)
Create a new FTPWrite object to be used to send binary
data with progress information actively. |
|
FTPWrite(Socket s,
BufferedReader r)
Create a new FTPWrite object to be used to send ascii
data passively. |
|
FTPWrite(Socket s,
BufferedReader r,
Progress p,
long start,
long stop)
Create a new FTPWrite object to be used to send ascii
data with progress information passively. |
|
FTPWrite(Socket s,
InputStream is)
Create a new FTPWrite object to be used to send binary
data passively. |
|
FTPWrite(Socket s,
InputStream is,
Progress p,
long start,
long stop)
Create a new FTPWrite object to be used to send binary
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 FTPWrite(Socket s,
InputStream is)
FTPWrite object to be used to send binary
data passively.
s - the data socket.is - the data stream.
public FTPWrite(Socket s,
InputStream is,
Progress p,
long start,
long stop)
FTPWrite object to be used to send binary
data with progress information passively.
s - the data socket.is - the data stream.p - a Progress object which is used to update
upload status.start - the start size of the file being uploaded (used in progress).stop - the stop size of the file being uploaded (used in progress).
public FTPWrite(Socket s,
BufferedReader r)
FTPWrite object to be used to send ascii
data passively.
s - the data socket.r - the data reader.
public FTPWrite(Socket s,
BufferedReader r,
Progress p,
long start,
long stop)
FTPWrite object to be used to send ascii
data with progress information passively.
s - the data socket.r - the data reader.p - a Progress object which is used to update
upload status.start - the start size of the file being uploaded (used in progress).stop - the stop size of the file being uploaded (used in progress).
public FTPWrite(ServerSocket ss,
InputStream is)
FTPWrite object to be used to send binary
data actively.
ss - the data server socket.is - the data stream.
public FTPWrite(ServerSocket ss,
InputStream is,
Progress p,
long start,
long stop)
FTPWrite object to be used to send binary
data with progress information actively.
ss - the data server socket.is - the data stream.p - a Progress object which is used to update
upload status.start - the start size of the file being uploaded (used in progress).stop - the stop size of the file being uploaded (used in progress).
public FTPWrite(ServerSocket ss,
BufferedReader r)
FTPWrite object to be used to send ascii
data actively.
ss - the data server socket.r - the data reader.
public FTPWrite(ServerSocket ss,
BufferedReader r,
Progress p,
long start,
long stop)
FTPWrite object to be used to send ascii
data with progress information actively.
ss - the data server socket.r - the data reader.p - a Progress object which is used to update
upload status.start - the start size of the file being uploaded (used in progress).stop - the stop size of the file being uploaded (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 | ||||||||