public class DepReader
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
private DepEntry |
depEntry
the current depEntry.
|
private DepFile |
depfile
The current Dependencyfile.
|
| Constructor and Description |
|---|
DepReader() |
| Modifier and Type | Method and Description |
|---|---|
void |
createDep(java.lang.String dep)
This function creats a new dependency.
|
void |
createModule(java.lang.String module)
This function creates a new Module.
|
protected DepFile |
getDepfile() |
void |
read(java.lang.String pathToRead)
reads the file.
|
java.lang.String[] |
splitDepsInParts(java.lang.String deps)
splits the Dependencies in parts.
|
java.lang.String[] |
splitFileInLines(java.lang.String file)
split the file in lines.
|
java.lang.String[] |
splitLineInParts(java.lang.String line)
split the line in parts.
|
protected java.lang.String[] |
splitModule(java.lang.String module)
This function split the String Modul in name and path.
|
private final DepFile depfile
private DepEntry depEntry
public void read(java.lang.String pathToRead)
throws ReaderException
pathToRead - path to the file to read.ReaderException - if it fails.public java.lang.String[] splitFileInLines(java.lang.String file)
file - Datei.public java.lang.String[] splitLineInParts(java.lang.String line)
line - Zeile.public java.lang.String[] splitDepsInParts(java.lang.String deps)
deps - dependencypublic void createModule(java.lang.String module)
module - module as Stringpublic void createDep(java.lang.String dep)
dep - dep as Stringprotected java.lang.String[] splitModule(java.lang.String module)
module - the module as Stringprotected DepFile getDepfile()