public abstract class AbstractFileTreeElement extends java.lang.Object implements FileTreeElement
| Constructor and Description |
|---|
AbstractFileTreeElement() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
copyTo(java.io.File target)
Copies this file to the given target file.
|
void |
copyTo(java.io.OutputStream outstr)
Copies the content of this file to an output stream.
|
abstract java.lang.String |
getDisplayName() |
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.
|
java.lang.String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetFile, getLastModified, getRelativePath, getSize, isDirectory, openpublic abstract java.lang.String getDisplayName()
public java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String getName()
FileTreeElementgetName in interface FileTreeElementpublic java.lang.String getPath()
FileTreeElementgetRelativePath().getPathString().getPath in interface FileTreeElementpublic void copyTo(java.io.OutputStream outstr)
FileTreeElementnew FileInputStream(getFile()).copyTo in interface FileTreeElementoutstr - The output stream to write to. The caller is responsible for closing this stream.public boolean copyTo(java.io.File target)
FileTreeElementcopyTo in interface FileTreeElementtarget - the target file.public int getMode()
FileTreeElement0644.getMode in interface FileTreeElementCopyright © 2013. All rights reserved