public class Jr6Loader extends Object implements FileLoader
Constructor and Description |
---|
Jr6Loader() |
Modifier and Type | Method and Description |
---|---|
List<OptionDefinition> |
getOptionDefinitions() |
LoadedData |
readFile(File file,
Map<String,Object> importOptions)
Returns a JR6 loader for the specified file.
|
LoadedData |
readStream(InputStream inputStream,
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(InputStream inputStream, 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(File file, Map<String,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 List<OptionDefinition> getOptionDefinitions()
getOptionDefinitions
in interface FileLoader
Copyright © 2022. All rights reserved.