Package gov.nasa.pds.tools.label.parser
Interface LabelParser
-
- All Known Implementing Classes:
DefaultLabelParser
public interface LabelParser- Version:
- $Revision$
- Author:
- pramirez, jagander
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description LabelparseLabel(File file, boolean forceParse)LabelparseLabel(URL url, boolean forceParse)Parses the given fileLabelparsePartial(File file, Label parent)LabelparsePartial(URL url, Label parent)Parses the given partial label.
-
-
-
Method Detail
-
parseLabel
Label parseLabel(URL url, boolean forceParse) throws LabelParserException, IOException
Parses the given file- Parameters:
url- File to- Returns:
Labelrepresentation of the file- Throws:
LabelParserException- - If any syntactic errors are encountered. All errors will be written to the Logger.IOException
-
parseLabel
Label parseLabel(File file, boolean forceParse) throws LabelParserException, IOException
- Throws:
LabelParserExceptionIOException
-
parsePartial
Label parsePartial(URL url, Label parent) throws LabelParserException, IOException
Parses the given partial label.- Parameters:
url-- Returns:
Labelrepresentation of the file- Throws:
LabelParserExceptionIOException
-
parsePartial
Label parsePartial(File file, Label parent) throws LabelParserException, IOException
- Throws:
LabelParserExceptionIOException
-
-