public class FileFrag extends java.lang.Object implements XMLable
构造器和说明 |
---|
FileFrag() |
FileFrag(java.lang.String path) |
FileFrag(java.lang.String path,
boolean isDir) |
限定符和类型 | 方法和说明 |
---|---|
java.lang.Object |
clone() |
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getPath() |
boolean |
isDir() |
void |
readXML(XMLableReader reader)
读取子节点,应该会被XMLableReader.readXMLObject()调用多次
|
void |
setDir(boolean isDir) |
void |
setPath(java.lang.String path) |
FileNode |
toFileNode() |
java.lang.String |
toString() |
void |
writeXML(XMLPrintWriter writer)
Write XML.
|
public FileFrag()
public FileFrag(java.lang.String path)
public FileFrag(java.lang.String path, boolean isDir)
public java.lang.String getPath()
public void setPath(java.lang.String path)
path
- the path to setpublic boolean isDir()
public void setDir(boolean isDir)
isDir
- the isDir to setpublic FileNode toFileNode()
public void readXML(XMLableReader reader)
XMLReadable
readXML
在接口中 XMLReadable
reader
- XML读取对象XMLableReader
public void writeXML(XMLPrintWriter writer)
XMLWriter
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone
在接口中 FCloneable
clone
在类中 java.lang.Object
java.lang.CloneNotSupportedException
- 如果克隆失败则抛出此异常public boolean equals(java.lang.Object obj)
equals
在类中 java.lang.Object
public java.lang.String toString()
toString
在类中 java.lang.Object