public class DefaultLabelParser extends Object implements LabelParser
Constructor and Description |
---|
DefaultLabelParser(boolean loadIncludes,
boolean captureProblems,
boolean allowExternalProblems,
PointerResolver resolver) |
DefaultLabelParser(boolean loadIncludes,
boolean captureProblems,
PointerResolver resolver) |
DefaultLabelParser(PointerResolver resolver) |
Modifier and Type | Method and Description |
---|---|
String |
getODLVersion() |
static void |
main(String[] args) |
Label |
parseLabel(File file) |
Label |
parseLabel(File file,
boolean forceParse) |
Label |
parseLabel(URL url) |
Label |
parseLabel(URL url,
boolean forceParse)
Parses the given file
|
Label |
parsePartial(BufferedInputStream inputStream,
Label label,
Label parent) |
Label |
parsePartial(File file,
Label parent) |
Label |
parsePartial(File file,
Label parent,
boolean captureProbs) |
Label |
parsePartial(File file,
Label parent,
boolean captureProbs,
boolean allowExternalProbs) |
Label |
parsePartial(URL url,
Label parent)
Parses the given partial label.
|
Label |
parsePartial(URL url,
Label parent,
boolean captureProbs) |
Label |
parsePartial(URL url,
Label parent,
boolean captureProbs,
boolean allowExternalProbs) |
public DefaultLabelParser(PointerResolver resolver)
public DefaultLabelParser(boolean loadIncludes, boolean captureProblems, PointerResolver resolver)
public DefaultLabelParser(boolean loadIncludes, boolean captureProblems, boolean allowExternalProblems, PointerResolver resolver)
public Label parseLabel(URL url) throws LabelParserException, IOException
LabelParserException
IOException
public Label parseLabel(File file) throws LabelParserException, IOException
LabelParserException
IOException
public Label parseLabel(URL url, boolean forceParse) throws LabelParserException, IOException
LabelParser
parseLabel
in interface LabelParser
url
- File toLabel
representation of the fileLabelParserException
- - If any syntactic errors are encountered. All errors will be
written to the Logger.IOException
public Label parseLabel(File file, boolean forceParse) throws LabelParserException, IOException
parseLabel
in interface LabelParser
LabelParserException
IOException
public String getODLVersion()
public Label parsePartial(File file, Label parent) throws IOException, LabelParserException
parsePartial
in interface LabelParser
IOException
LabelParserException
public Label parsePartial(File file, Label parent, boolean captureProbs) throws IOException, LabelParserException
IOException
LabelParserException
public Label parsePartial(File file, Label parent, boolean captureProbs, boolean allowExternalProbs) throws IOException, LabelParserException
IOException
LabelParserException
public Label parsePartial(URL url, Label parent) throws IOException, LabelParserException
LabelParser
parsePartial
in interface LabelParser
Label
representation of the fileIOException
LabelParserException
public Label parsePartial(URL url, Label parent, boolean captureProbs) throws IOException, LabelParserException
IOException
LabelParserException
public Label parsePartial(URL url, Label parent, boolean captureProbs, boolean allowExternalProbs) throws IOException, LabelParserException
IOException
LabelParserException
public Label parsePartial(BufferedInputStream inputStream, Label label, Label parent) throws IOException, LabelParserException
IOException
LabelParserException
Copyright © 2005–2015 Planetary Data System. All rights reserved.