public class Jr6Loader extends java.lang.Object implements FileLoader
Constructor and Description |
---|
Jr6Loader() |
Modifier and Type | Method and Description |
---|---|
java.util.List<OptionDefinition> |
getOptionDefinitions() |
LoadedData |
readFile(java.io.File file,
java.util.Map<java.lang.String,java.lang.Object> importOptions)
Returns a JR6 loader for the specified file.
|
LoadedData |
readStream(java.io.InputStream inputStream,
java.lang.String fileIdentifier,
TreatmentType defaultTreatmentType)
Reads JR6 data from a specified input stream.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
checkOptions, 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.String,java.lang.Object> importOptions)
Currently one load option can be supplied: if the option map contains the
key default_treatment_type
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
3-axis AF. 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)public java.util.List<OptionDefinition> getOptionDefinitions()
getOptionDefinitions
in interface FileLoader