public interface FtpFile
| Modifier and Type | Method and Description |
|---|---|
InputStream |
createInputStream(long offset)
Create input stream for reading.
|
OutputStream |
createOutputStream(long offset)
Create output stream for writing.
|
boolean |
delete()
Delete file.
|
boolean |
doesExist()
Does this file exists?
|
String |
getAbsolutePath()
Get the full path from the base directory of the FileSystemView.
|
String |
getGroupName()
Get owner group name.
|
long |
getLastModified()
Get last modified time in UTC.
|
int |
getLinkCount()
Get link count.
|
String |
getName()
Get the file name of the file.
|
String |
getOwnerName()
Get the owner name.
|
Object |
getPhysicalFile()
Returns the physical location or path of the file.
|
long |
getSize()
Get file size.
|
boolean |
isDirectory()
Is it a directory?
|
boolean |
isFile()
Is it a file?
|
boolean |
isHidden()
Is the file hidden?
|
boolean |
isReadable()
Has read permission?
|
boolean |
isRemovable()
Has delete permission?
|
boolean |
isWritable()
Has write permission?
|
List<? extends FtpFile> |
listFiles()
List file objects.
|
boolean |
mkdir()
Create directory.
|
boolean |
move(FtpFile destination)
Move file.
|
boolean |
setLastModified(long time)
Set the last modified time stamp of a file.
|
String getAbsolutePath()
String getName()
boolean isHidden()
FtpFile is hiddenboolean isDirectory()
FtpFile is a directoryboolean isFile()
FtpFile is a file, false if it is a directoryboolean doesExist()
FtpFile existsboolean isReadable()
FtpFile is readable by the userboolean isWritable()
FtpFile is writable by the userboolean isRemovable()
FtpFile is removable by the userString getOwnerName()
FtpFileString getGroupName()
FtpFileint getLinkCount()
FtpFilelong getLastModified()
FtpFileboolean setLastModified(long time)
time - The last modified time, in milliseconds since the epoch. See File#setLastModified(long).true if and only if the operation succeeded; false otherwiselong getSize()
FtpFile in bytesObject getPhysicalFile()
boolean mkdir()
boolean delete()
boolean move(FtpFile destination)
List<? extends FtpFile> listFiles()
OutputStream createOutputStream(long offset) throws IOException
offset - The number of bytes at where to start writing.
If the file is not random accessible,
any offset other than zero will throw an exception.OutputStream used to write to the FtpFileIOExceptionInputStream createInputStream(long offset) throws IOException
offset - The number of bytes of where to start reading.
If the file is not random accessible,
any offset other than zero will throw an exception.InputStream used to read the FtpFileIOExceptionCopyright © 2003–2022 The Apache Software Foundation. All rights reserved.