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.
|
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<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()
FtpFile
String getGroupName()
FtpFile
int getLinkCount()
FtpFile
long getLastModified()
FtpFile
boolean setLastModified(long time)
time
- The last modified time, in milliseconds since the epoch. See File.setLastModified(long)
.long getSize()
FtpFile
in bytesboolean mkdir()
boolean delete()
boolean move(FtpFile destination)
List<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 FtpFile
IOException
InputStream 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 FtpFile
IOException
Copyright © 2003–2016 The Apache Software Foundation. All rights reserved.