public class Jr6Loader extends java.lang.Object implements FileLoader
Constructor and Description |
---|
Jr6Loader() |
Modifier and Type | Method and Description |
---|---|
LoadedData |
readFile(java.io.File file,
java.util.Map<java.lang.Object,java.lang.Object> importOptions)
Return a JR6 loader for the specified file.
|
LoadedData |
readStream(java.io.InputStream inputStream,
java.lang.String fileIdentifier,
TreatmentType defaultTreatmentType)
Read JR6 data from a specified input stream.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getOptionDefinitions, readFile
public LoadedData readStream(java.io.InputStream inputStream, java.lang.String fileIdentifier, TreatmentType defaultTreatmentType)
inputStream
- a stream of JR6 file contentsfileIdentifier
- an identifier for the file
(only used in load messages)defaultTreatmentType
- the treatment type to use for lines which
don't specify one explicitlypublic LoadedData readFile(java.io.File file, java.util.Map<java.lang.Object,java.lang.Object> importOptions)
Currently one load option can be supplied: if the option map contains the
key TreatmentType.class
with an associated value of type
TreatmentType
, that value will be used as the default treatment
type for the data in the file. Otherwise, treatment type will default to
thermal. The default treatment type is only used for data lines which do
not explicitly specify a treatment type.
readFile
in interface FileLoader
file
- a JR6 file to readimportOptions
- load options (see method description for details)