public interface FileInterface
Modifier and Type | Method and Description |
---|---|
boolean |
abortFile()
Try to abort the current transfer if any
|
boolean |
canRead() |
boolean |
canWrite() |
void |
checkIdentify()
Check if the authentication is correct
|
void |
clear()
Set empty this FtpFile, mark it unReady.
|
boolean |
closeFile()
Close the current FileInterface
|
boolean |
delete()
Delete the current FileInterface.
|
boolean |
exists() |
DirInterface |
getDir() |
String |
getFile() |
DataBlock |
getMarker()
Create a restart from context for the current FileInterface
|
SessionInterface |
getSession() |
boolean |
isDirectory()
Is the current FileInterface a directory and exists
|
boolean |
isFile()
Is the current FileInterface a file and exists
|
boolean |
isInReading() |
boolean |
isInWriting() |
long |
length() |
DataBlock |
readDataBlock()
Read a new block for FileInterface
|
boolean |
renameTo(String path)
Rename the current FileInterface into a new filename from argument
|
boolean |
restartMarker(Restart restart)
Restart from a Marker for the current FileInterface if any.
|
boolean |
retrieve()
Ask to retrieve the current FileInterface.
|
void |
setPosition(long position)
Change the position in the file.
|
boolean |
store()
Ask to store the current FileInterface.
|
void |
writeDataBlock(DataBlock dataBlock)
Function called by the DataNetworkHandler when it receives one DataBlock
(Store like command)
|
void clear() throws CommandAbstractException
CommandAbstractException
void checkIdentify() throws Reply530Exception
Reply530Exception
SessionInterface getSession()
DirInterface getDir()
boolean isDirectory() throws CommandAbstractException
CommandAbstractException
boolean isFile() throws CommandAbstractException
CommandAbstractException
String getFile() throws CommandAbstractException
CommandAbstractException
boolean closeFile() throws CommandAbstractException
CommandAbstractException
long length() throws CommandAbstractException
CommandAbstractException
boolean isInWriting() throws CommandAbstractException
CommandAbstractException
boolean isInReading() throws CommandAbstractException
CommandAbstractException
boolean canRead() throws CommandAbstractException
CommandAbstractException
boolean canWrite() throws CommandAbstractException
CommandAbstractException
boolean exists() throws CommandAbstractException
CommandAbstractException
boolean abortFile() throws CommandAbstractException
CommandAbstractException
boolean store() throws CommandAbstractException
CommandAbstractException
boolean retrieve() throws CommandAbstractException
CommandAbstractException
boolean renameTo(String path) throws CommandAbstractException
path
- the new filename (path could be relative or absolute
-
without mount point)CommandAbstractException
boolean restartMarker(Restart restart) throws CommandAbstractException
restart
- CommandAbstractException
DataBlock getMarker() throws CommandAbstractException
CommandAbstractException
boolean delete() throws CommandAbstractException
CommandAbstractException
void setPosition(long position) throws IOException
position
- the position to setIOException
void writeDataBlock(DataBlock dataBlock) throws FileTransferException
dataBlock
- FileTransferException
FileEndOfTransferException
DataBlock readDataBlock() throws FileEndOfTransferException, FileTransferException
FileEndOfTransferException
FileTransferException
Copyright © 2009–2020 Waarp. All rights reserved.