public class LabelParser
extends java.lang.Object
This code was written with reference to the PDS4 data standards v1.16.0.
| Constructor and Description |
|---|
LabelParser()
Default parser.
|
LabelParser(boolean observationalOnly,
java.lang.String[] blankSpecials)
Custom constructor.
|
| Modifier and Type | Method and Description |
|---|---|
Label |
parseLabel(java.io.File file)
Parses the label file in a given File to create a Label object.
|
Label |
parseLabel(java.io.InputStream in,
java.net.URI contextUri)
Parses the label file from a given InputStream to create a Label object.
|
Label |
parseLabel(java.net.URL url)
Parses the label file at a given URL to create a Label object.
|
public LabelParser()
public LabelParser(boolean observationalOnly,
java.lang.String[] blankSpecials)
observationalOnly - if true, only File_Observational tables
are included; if false all are includedblankSpecials - list of special constant elements to map
to null values in output table datapublic Label parseLabel(java.net.URL url) throws java.io.IOException
url - location of PDS4 label XML filejava.io.IOExceptionpublic Label parseLabel(java.io.File file) throws java.io.IOException
file - location of PDS4 label XML filejava.io.IOExceptionpublic Label parseLabel(java.io.InputStream in, java.net.URI contextUri) throws java.io.IOException
in - input stream, closed unconditionally on exitcontextUri - context URIjava.io.IOException