|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.maven.jxr.pacman.FileManager
public class FileManager
Singleton that handles holding references to JavaFiles. This allows Alexandria to lookup and see if a file has already been parsed out and then it can load the information from memory instead of reparsing the file.
Note. This assumes that the file will not be modified on disk while Alexandria is running.
Constructor Summary | |
---|---|
FileManager()
|
Method Summary | |
---|---|
void |
addFile(JavaFile file)
Add a file to this filemanager. |
String |
getEncoding()
see setEncoding(String) |
JavaFile |
getFile(String name)
Get a file from it's name. |
static FileManager |
getInstance()
Get an instance of the FileManager |
void |
setEncoding(String encoding)
Encoding is the encoding of source files. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FileManager()
Method Detail |
---|
public static FileManager getInstance()
public JavaFile getFile(String name) throws IOException
IOException
public void addFile(JavaFile file)
public void setEncoding(String encoding)
encoding
- encoding of source filespublic String getEncoding()
setEncoding(String)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |