Package org.lemsml.jlems.io.reader
Class FileInclusionReader
- java.lang.Object
-
- org.lemsml.jlems.core.sim.AbstractInclusionReader
-
- org.lemsml.jlems.io.reader.FileInclusionReader
-
public class FileInclusionReader extends AbstractInclusionReader
-
-
Field Summary
Fields Modifier and Type Field Description private java.io.File
prefDir
private java.io.File
rootFile
private static java.util.ArrayList<java.io.File>
searchDirs
-
Fields inherited from class org.lemsml.jlems.core.sim.AbstractInclusionReader
FILE, fullFilePathsIncluded, JAR, URL
-
-
Constructor Summary
Constructors Constructor Description FileInclusionReader(java.io.File f)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static void
addSearchPath(java.io.File f)
void
addSearchPath(java.lang.String s)
void
addSearchPaths(java.lang.String sp)
java.lang.String
getRelativeContent(java.lang.String attribute, java.lang.String s)
java.lang.String
getRootContent()
-
Methods inherited from class org.lemsml.jlems.core.sim.AbstractInclusionReader
getAllIncludedFiles, getIncludeContent, insertIncludes, read, removeXMLComments, trimOuterElement
-
-
-
-
Method Detail
-
addSearchPath
public static void addSearchPath(java.io.File f)
-
addSearchPath
public void addSearchPath(java.lang.String s)
-
addSearchPaths
public void addSearchPaths(java.lang.String sp)
-
getRelativeContent
public java.lang.String getRelativeContent(java.lang.String attribute, java.lang.String s) throws ContentError
- Specified by:
getRelativeContent
in classAbstractInclusionReader
- Throws:
ContentError
-
getRootContent
public java.lang.String getRootContent() throws ContentError
- Specified by:
getRootContent
in classAbstractInclusionReader
- Throws:
ContentError
-
-