public class LabelParser extends Object
This code was written with reference to the PDS4 data standards v1.16.0.
| Constructor and Description |
|---|
LabelParser()
Default parser.
|
LabelParser(boolean observationalOnly,
String[] blankSpecials)
Custom constructor.
|
| Modifier and Type | Method and Description |
|---|---|
Label |
parseLabel(File file)
Parses the label file in a given File to create a Label object.
|
Label |
parseLabel(InputStream in,
URI contextUri)
Parses the label file from a given InputStream to create a Label object.
|
Label |
parseLabel(URL url)
Parses the label file at a given URL to create a Label object.
|
public LabelParser()
public LabelParser(boolean observationalOnly,
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(URL url) throws IOException
url - location of PDS4 label XML fileIOExceptionpublic Label parseLabel(File file) throws IOException
file - location of PDS4 label XML fileIOExceptionpublic Label parseLabel(InputStream in, URI contextUri) throws IOException
in - input stream, closed unconditionally on exitcontextUri - context URIIOExceptionCopyright © 2025 Central Laboratory of the Research Councils. All Rights Reserved.