public class RemoteFile
extends java.io.File
Modifier and Type | Field and Description |
---|---|
protected jadex.bridge.service.types.filetransfer.FileData |
filedata
The file data.
|
Constructor and Description |
---|
RemoteFile(jadex.bridge.service.types.filetransfer.FileData filedata)
Create a directory representation of a jar file.
|
Modifier and Type | Method and Description |
---|---|
static RemoteFile[] |
convertToFiles(jadex.bridge.service.types.filetransfer.FileData[] remfiles)
Convert remote files to files.
|
boolean |
exists()
Check if the file exists.
|
java.lang.String |
getAbsolutePath()
Get the path.
|
java.io.File |
getCanonicalFile()
Get the canonical name.
|
java.lang.String |
getCanonicalPath() |
jadex.bridge.service.types.filetransfer.FileData |
getFiledata()
Get the filedata.
|
java.lang.String |
getName()
Get the file name.
|
java.lang.String |
getParent()
Get the parent name.
|
java.io.File |
getParentFile()
Get the parent file.
|
java.lang.String |
getPath()
Get the path.
|
boolean |
isAbsolute()
Test if absolute.
|
boolean |
isDirectory()
Test if is a directory.
|
boolean |
isFile()
Test if is a file.
|
boolean |
isHidden()
Test if file is hidden.
|
long |
lastModified()
Get the last modified date.
|
java.lang.String[] |
list()
List contained filed.
|
java.io.File[] |
listFiles() |
java.io.File[] |
listFiles(java.io.FileFilter filter) |
java.io.File[] |
listFiles(java.io.FilenameFilter filter) |
static void |
main(java.lang.String[] args)
Main for testing.
|
java.lang.String |
toString()
Get the string representation.
|
canExecute, canRead, canWrite, compareTo, createNewFile, createTempFile, createTempFile, delete, deleteOnExit, equals, getAbsoluteFile, getFreeSpace, getTotalSpace, getUsableSpace, hashCode, length, list, listRoots, mkdir, mkdirs, renameTo, setExecutable, setExecutable, setLastModified, setReadable, setReadable, setReadOnly, setWritable, setWritable, toPath, toURI, toURL
protected jadex.bridge.service.types.filetransfer.FileData filedata
public RemoteFile(jadex.bridge.service.types.filetransfer.FileData filedata)
public jadex.bridge.service.types.filetransfer.FileData getFiledata()
public boolean isDirectory()
isDirectory
in class java.io.File
public java.io.File[] listFiles(java.io.FileFilter filter)
listFiles
in class java.io.File
public java.io.File[] listFiles(java.io.FilenameFilter filter)
listFiles
in class java.io.File
public java.io.File[] listFiles()
listFiles
in class java.io.File
public long lastModified()
lastModified
in class java.io.File
public boolean exists()
exists
in class java.io.File
public java.lang.String getName()
getName
in class java.io.File
public java.lang.String getAbsolutePath()
getAbsolutePath
in class java.io.File
public java.lang.String getPath()
getPath
in class java.io.File
public java.lang.String getParent()
getParent
in class java.io.File
public java.io.File getParentFile()
getParentFile
in class java.io.File
public boolean isAbsolute()
isAbsolute
in class java.io.File
public java.lang.String getCanonicalPath() throws java.io.IOException
getCanonicalPath
in class java.io.File
java.io.IOException
public java.io.File getCanonicalFile() throws java.io.IOException
getCanonicalFile
in class java.io.File
java.io.IOException
public boolean isFile()
isFile
in class java.io.File
public boolean isHidden()
isHidden
in class java.io.File
public java.lang.String[] list()
list
in class java.io.File
public java.lang.String toString()
toString
in class java.io.File
public static RemoteFile[] convertToFiles(jadex.bridge.service.types.filetransfer.FileData[] remfiles)
public static void main(java.lang.String[] args) throws java.lang.Exception
java.lang.Exception