public abstract class IOFileTransferConnection<C extends ClientContext> extends AbstractClientObject<C> implements CancellableTask, ClientObject<C>
| Modifier and Type | Field and Description |
|---|---|
static int |
TRANSFER_BUFF_SIZE |
| Constructor and Description |
|---|
IOFileTransferConnection(C clientCtx,
FileTransferClientTask transferTask,
FileTransferJob job,
StreamWrapper streamWrapper) |
| Modifier and Type | Method and Description |
|---|---|
void |
cancel() |
void |
checkCancelled() |
void |
close()
Closes all socket streams as well as the socket itself.
|
void |
execute() |
protected void |
fireReadProgress(long bytesDelta) |
java.io.File |
getClientFile() |
protected java.lang.String |
getClientFileInfo() |
long |
getFileLength() |
java.io.InputStream |
getReceiveStream() |
java.io.OutputStream |
getSendStream() |
java.lang.String |
getSocketInfo() |
FileTransferJob |
getTransferJob() |
boolean |
isTransferZipped() |
protected java.lang.Object |
readObject() |
void |
setFileLength(long fileLength) |
void |
shutdownInput() |
void |
shutdownOutput() |
java.lang.String |
toString()
Returns a single line String that shows the values of the most important
state variables of this object.
|
boolean |
wasCancelled()
Tells whether ever an attempt has been made to cancel this task.
|
boolean |
wasFoundZippedOnServer() |
protected java.lang.Object |
writeAndReadObject(java.lang.Object sendObj) |
protected void |
writeObject(java.lang.Object obj) |
getClientConfig, getClientContextgetApplicationContext, getLogChannel, isLogDebug, isLogVerbose, logDebug, logDump, logError, logError, logFatal, logInfo, logVerbose, logWarning, setLogChannelconfigureDumpHeadlineLength, configureDumpMaxElementsPrinted, copyDumpStringValues, copyToStringValues, createDumpHeader, toDumpString, toDumpString, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetClientContextpublic static final int TRANSFER_BUFF_SIZE
public IOFileTransferConnection(C clientCtx, FileTransferClientTask transferTask, FileTransferJob job, StreamWrapper streamWrapper) throws java.lang.Exception
java.lang.Exceptionprotected final void writeObject(java.lang.Object obj)
throws java.lang.Exception
java.lang.Exceptionprotected final java.lang.Object readObject()
throws java.lang.Exception
java.lang.Exceptionprotected final java.lang.Object writeAndReadObject(java.lang.Object sendObj)
throws java.lang.Exception
java.lang.Exceptionprotected void fireReadProgress(long bytesDelta)
protected java.lang.String getClientFileInfo()
public final java.lang.String getSocketInfo()
public final java.io.OutputStream getSendStream()
public final java.io.InputStream getReceiveStream()
public final void shutdownInput()
throws java.io.IOException
java.io.IOExceptionpublic final void shutdownOutput()
throws java.io.IOException
java.io.IOExceptionpublic final void close()
public final boolean isTransferZipped()
public final boolean wasFoundZippedOnServer()
public final FileTransferJob getTransferJob()
public final java.io.File getClientFile()
public final long getFileLength()
public final void setFileLength(long fileLength)
public void execute()
throws java.lang.Exception
java.lang.Exceptionpublic final void cancel()
public final void checkCancelled()
public final boolean wasCancelled()
CancellableTaskwasCancelled in interface CancellableTaskpublic java.lang.String toString()
DumpabletoString in interface DumpabletoString in class DumpableObjectCopyright © 2014 EsprIT-Systems. All Rights Reserved.