|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.b3dgs.lionengine.file.impl.FileFactory
public final class FileFactory
Field Summary |
---|
Fields inherited from interface com.b3dgs.lionengine.File |
---|
FILE |
Method Summary | |
---|---|
FileReader |
createFileReader(java.lang.String path)
Open a file as read only. |
FileWriter |
createFileWriter(java.lang.String path)
Open a file as write only. |
XMLNode |
createXMLNode(java.lang.String name)
Create an xml node from a name. |
XMLParser |
createXMLParser()
Create an XML parser, in order to load an xml node from a file. |
static FileFactory |
getInstance()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static FileFactory getInstance()
public FileReader createFileReader(java.lang.String path) throws java.io.FileNotFoundException
File
createFileReader
in interface File
path
- file name.
java.io.FileNotFoundException
- if file is not found.public FileWriter createFileWriter(java.lang.String path) throws java.io.FileNotFoundException
File
createFileWriter
in interface File
path
- file name.
java.io.FileNotFoundException
- if file is not found.public XMLParser createXMLParser()
File
createXMLParser
in interface File
public XMLNode createXMLNode(java.lang.String name)
File
createXMLNode
in interface File
name
- node name.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |