|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.hermesftp.cmd.AbstractFtpCmd
net.sf.hermesftp.cmd.AbstractFtpCmdStor
net.sf.hermesftp.cmd.AbstractFtpCmdStorFile
public abstract class AbstractFtpCmdStorFile
Abstract STOR command implementation that saves files to the local disk.
| Field Summary |
|---|
| Constructor Summary | |
|---|---|
AbstractFtpCmdStorFile()
|
|
| Method Summary | |
|---|---|
protected void |
doPerformAccessChecks(boolean unique,
java.io.File file,
long fileOffset)
Checks availability and access rights for the current folder and passed file. |
protected void |
doStoreFileData(java.io.InputStream is,
java.io.File file,
long offset)
Stores unstructured data as file. |
protected void |
doStoreRecordData(RecordReadSupport rrs,
java.io.File file,
long offset)
Stores record based data as file. |
void |
execute(boolean unique)
Executes the command. |
| Methods inherited from class net.sf.hermesftp.cmd.AbstractFtpCmdStor |
|---|
getCompleted, getFileSize, getTransferRateLimiter, handleAsyncCmd, incCompleted, isAbortRequested, setFileSize, setTransferRateLimiter |
| Methods inherited from class net.sf.hermesftp.cmd.AbstractFtpCmd |
|---|
getAbsPath, getAndResetFileOffset, getArguments, getCtx, getPathArg, getPermission, getToken, isResponded, msg, msg, msg, msgOut, msgOut, msgOut, out, setArguments, setCtx, setToken |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface net.sf.hermesftp.cmd.FtpCmd |
|---|
execute, getHelp, isAuthenticationRequired |
| Constructor Detail |
|---|
public AbstractFtpCmdStorFile()
| Method Detail |
|---|
public void execute(boolean unique)
throws FtpCmdException
execute in class AbstractFtpCmdStorunique - True, if file that is supposed to be stored may not exist on the remote file
system.
FtpCmdException - Wrapper class for any exception thrown in the command.
protected void doPerformAccessChecks(boolean unique,
java.io.File file,
long fileOffset)
throws FtpException
execute(boolean);
doPerformAccessChecks in class AbstractFtpCmdStorunique - True, if destination file may not exist already.file - The destination file.fileOffset - The file offset (-1 on append).
FtpException - Thrown if permission rules have been violated or resource limits have
been exceeded.
protected void doStoreFileData(java.io.InputStream is,
java.io.File file,
long offset)
throws java.io.IOException
execute(boolean);
doStoreFileData in class AbstractFtpCmdStoris - The input stream.file - Destination file.offset - The file offset (-1 on append).
java.io.IOException - Thrown if IO fails or if at least one resource limit was reached
protected void doStoreRecordData(RecordReadSupport rrs,
java.io.File file,
long offset)
throws java.io.IOException
execute(boolean);
doStoreRecordData in class AbstractFtpCmdStorrrs - The wrapped input stream.file - Destination file.offset - The file offset (-1 on append).
java.io.IOException - Thrown if IO fails or if at least one resource limit was reached.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||