|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.vizzini.util.tree.TreeNodePersister
public class TreeNodePersister
Provides persistence methods for a tree node.
Method Summary | |
---|---|
static TreeNodePersister |
getInstance()
Return the singleton instance of this class. |
ITreeNode |
read(File file)
Read a tree node from the given file. |
ITreeNode |
read(InputStream inputStream)
Read a tree node from the given input stream. |
ITreeNode |
read(String filename)
Read a tree node from the given file. |
void |
save(ITreeNode treeNode,
File file)
Save the given tree node to the given file. |
void |
save(ITreeNode treeNode,
OutputStream outputStream)
Save the given tree node to the given output stream. |
void |
save(ITreeNode treeNode,
String filename)
Save the given tree node to the given file. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static TreeNodePersister getInstance()
public ITreeNode read(String filename) throws FileNotFoundException
filename
- Filename.
FileNotFoundException
public ITreeNode read(File file) throws FileNotFoundException
file
- File.
FileNotFoundException
public ITreeNode read(InputStream inputStream) throws FileNotFoundException
inputStream
- Input stream.
FileNotFoundException
public void save(ITreeNode treeNode, String filename) throws FileNotFoundException
treeNode
- Tree node to save.filename
- Filename.
FileNotFoundException
public void save(ITreeNode treeNode, File file) throws FileNotFoundException
treeNode
- Tree node to save.file
- File.
FileNotFoundException
public void save(ITreeNode treeNode, OutputStream outputStream) throws FileNotFoundException
treeNode
- Tree node to save.outputStream
- Output stream.
FileNotFoundException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 2007 Vizzini.org. All Rights Reserved. | 2007.12.25.03.00.02 |