public class FileManager extends Object
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 and Description |
---|
FileManager() |
Modifier and Type | Method and Description |
---|---|
void |
addFile(JavaFile file)
Add a file to this filemanager.
|
String |
getEncoding()
see setEncoding(String)
|
JavaFile |
getFile(Path path)
Get a file from it's name.
|
void |
setEncoding(String encoding)
Encoding is the encoding of source files.
|
public JavaFile getFile(Path path) throws IOException
IOException
public void addFile(JavaFile file)
public void setEncoding(String encoding)
encoding
- encoding of source filespublic String getEncoding()
setEncoding(String)
Copyright © 2002–2021 The Apache Software Foundation. All rights reserved.