E - The element to be saved/parsedpublic final class Filer<E> extends Object
This class is used to provide a generic way for saving and parsing objects using the extension file.
| Modifier and Type | Method and Description |
|---|---|
static Filer |
getInstance()
Return the singleton instance of this class.
|
void |
parse(E e,
IOFactory factory,
String filename)
Parse the description of this component from a file whose name is specified.
|
void |
save(E e,
IOFactory factory,
String filename)
Save the description of this component in a file whose name is specified.
|
public static Filer getInstance()
Return the singleton instance of this class.
public void save(E e, IOFactory factory, String filename) throws IOException
Save the description of this component in a file whose name is specified.
e - the element to savefactory - the reader/writer factoryfilename - the name of the fileIOException - When an IOException occurspublic void parse(E e, IOFactory factory, String filename) throws IOException
Parse the description of this component from a file whose name is specified.
e - the element to parsefactory - the reader/writer factoryfilename - the name of the fileIOException - When an IOException occursCopyright © 2010–2016 The Galactic Organization. All rights reserved.