FileCopyDetails, FileVisitDetailspublic interface FileTreeElement
FileTree.| Modifier and Type | Method | Description | 
|---|---|---|
| boolean | copyTo(java.io.File target) | Copies this file to the given target file. | 
| void | copyTo(java.io.OutputStream output) | Copies the content of this file to an output stream. | 
| java.io.File | getFile() | Returns the file being visited. | 
| long | getLastModified() | Returns the last modified time of this file at the time of file traversal. | 
| int | getMode() | Returns the Unix permissions of this file, e.g. | 
| java.lang.String | getName() | Returns the base name of this file. | 
| java.lang.String | getPath() | Returns the path of this file, relative to the root of the containing file tree. | 
| RelativePath | getRelativePath() | Returns the path of this file, relative to the root of the containing file tree. | 
| long | getSize() | Returns the size of this file at the time of file traversal. | 
| boolean | isDirectory() | Returns true if this element is a directory, or false if this element is a regular file. | 
| java.io.InputStream | open() | Opens this file as an input stream. | 
java.io.File getFile()
boolean isDirectory()
long getLastModified()
long getSize()
java.io.InputStream open()
new
 FileInputStream(getFile()).void copyTo(java.io.OutputStream output)
new FileInputStream(getFile()).output - The output stream to write to. The caller is responsible for closing this stream.boolean copyTo(java.io.File target)
target - the target file.java.lang.String getName()
java.lang.String getPath()
getRelativePath().getPathString().RelativePath getRelativePath()
int getMode()
0644.