public class PmdLoader
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected java.util.List<Datum> |
data |
protected java.util.List<java.lang.String> |
messages |
Constructor and Description |
---|
PmdLoader(java.io.InputStream inputStream,
java.util.Map<java.lang.Object,java.lang.Object> importOptions,
java.lang.String fileIdentifier)
Create a new PmdLoader containing the data from the supplied input
stream.
|
Modifier and Type | Method and Description |
---|---|
protected void |
addDatum(Datum d) |
protected void |
addMessage(java.lang.String message,
java.lang.Object... args) |
java.util.List<Datum> |
getData()
Returns the data points read from the file.
|
java.util.List<java.lang.String> |
getExtraLines()
Returns any lines in the file which were not handled by the loader.
|
java.util.List<java.lang.String> |
getMessages()
Returns any messages produced during the loading process.
|
static PmdLoader |
readFile(java.io.File file,
java.util.Map<java.lang.Object,java.lang.Object> importOptions) |
protected java.util.List<java.lang.String> messages
protected java.util.List<Datum> data
public PmdLoader(java.io.InputStream inputStream, java.util.Map<java.lang.Object,java.lang.Object> importOptions, java.lang.String fileIdentifier)
inputStream
- the input stream from which to read the PMD fileimportOptions
- import options (currently not used)fileIdentifier
- an optional identifier for the file being
read. It is only used in constructing warning and error messages.public static PmdLoader readFile(java.io.File file, java.util.Map<java.lang.Object,java.lang.Object> importOptions)
protected void addMessage(java.lang.String message, java.lang.Object... args)
protected void addDatum(Datum d)
public java.util.List<Datum> getData()
FileLoader
getData
in interface FileLoader
public java.util.List<java.lang.String> getExtraLines()
FileLoader
getExtraLines
in interface FileLoader
public java.util.List<java.lang.String> getMessages()
FileLoader
getMessages
in interface FileLoader