data.nodes
Class FileNode
java.lang.Object
data.nodes.FileNode
- All Implemented Interfaces:
- DataNode
public class FileNode
- extends java.lang.Object
- implements DataNode
Repräsentiert konkrete Datei als File-Node.
- Author:
- Thorsten Berger, Steffen Dienst
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
INVISIBLE
public static final java.lang.String INVISIBLE
- See Also:
- Constant Field Values
TYPE_LINK
public static final java.lang.String TYPE_LINK
- See Also:
- Constant Field Values
FileNode
public FileNode(java.lang.String path,
Directory dir,
java.lang.String restrictPath)
throws java.lang.IllegalArgumentException
- Throws:
java.lang.IllegalArgumentException
FileNode
public FileNode(java.lang.String path,
Directory dir)
throws java.lang.IllegalArgumentException
- Throws:
java.lang.IllegalArgumentException
FileNode
public FileNode(java.lang.String path,
java.lang.String restrictPath)
throws java.lang.IllegalArgumentException
- Throws:
java.lang.IllegalArgumentException
FileNode
public FileNode(java.lang.String path)
throws java.lang.IllegalArgumentException
- Throws:
java.lang.IllegalArgumentException
getSubNodes
public DataNode[] getSubNodes()
- FileNode kann keine SubNodes haben!
- Specified by:
getSubNodes
in interface DataNode
getDescription
public java.lang.String getDescription()
- Specified by:
getDescription
in interface DataNode
setDescription
public void setDescription(java.lang.String s)
getRawDescription
public java.lang.String getRawDescription()
getIdentification
public java.lang.String getIdentification()
- Specified by:
getIdentification
in interface DataNode
isFolder
public boolean isFolder()
- Specified by:
isFolder
in interface DataNode
getIcon
public java.lang.String getIcon()
- Specified by:
getIcon
in interface DataNode
getName
public java.lang.String getName()
delete
public void delete()
getFileInputStream
public java.io.FileInputStream getFileInputStream()
getFileReader
public java.io.FileReader getFileReader()
getAbsolutePath
public java.lang.String getAbsolutePath()
isRemovable
public boolean isRemovable()
lastModified
public long lastModified()
setFlag
public void setFlag(java.lang.String flagname)
hasFlag
public boolean hasFlag(java.lang.String flagname)
removeFlag
public void removeFlag(java.lang.String flagname)
getSpecialType
public java.lang.String getSpecialType()