public interface Text_Loader extends Loader
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
description |
static java.lang.String |
name |
static java.lang.String |
STD_IN_URI |
Modifier and Type | Method and Description |
---|---|
void |
load(java.net.URI source,
java.lang.Character delimiter,
boolean readDoublesAsTriples,
boolean stopOnErrors,
boolean async)
Load content from a candidate resource.
|
void |
validate(java.net.URI source,
java.lang.Character delimiter,
boolean readDoublesAsTriples,
int validationLevel)
Validate content for a candidate resource without performing a load.
|
clearLog, getCodingSchemeManifest, getCodingSchemeManifestURI, getCodingSchemeReferences, getLoaderPreferences, getLog, getOntologyFormat, getOptions, getStatus, load, setCodingSchemeManifest, setCodingSchemeManifestURI, setLoaderPreferences, setLoaderPreferences
getDescription, getName, getProvider, getVersion
static final java.lang.String STD_IN_URI
static final java.lang.String name
static final java.lang.String description
void load(java.net.URI source, java.lang.Character delimiter, boolean readDoublesAsTriples, boolean stopOnErrors, boolean async) throws LBException
source
- URI corresponding to the text file.delimiter
- Optional - defaults to tab the character used to delimit pair
or triple components and the nesting.readDoublesAsTriples
- Force the converter to read a doubles file (name/description)
as a triples file (code/name/description) So it reads codes
and names instead of names and descriptions.stopOnErrors
- True means stop if any load error is detected. False means
attempt to load what can be loaded if recoverable errors are
encountered.async
- Flag controlling whether load occurs in the calling thread.
If true, the load will occur in a separate asynchronous process.
If false, this method blocks until the load operation
completes or fails. Regardless of setting, the getStatus and
getLog calls are used to fetch results.LBException
void validate(java.net.URI source, java.lang.Character delimiter, boolean readDoublesAsTriples, int validationLevel) throws LBException
source
- URI corresponding to the text file.delimiter
- Optional - defaults to tab the character used to delimit pair
or triple components and the nesting.readDoublesAsTriples
- Force the converter to read a doubles file (name/description)
as a triples file (code/name/description) So it reads codes
and names intead of names and descriptionsvalidationLevel
- Supported levels of validation include: 0 = Verify file syntax
against the indicated format.LBException
LBException