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 Label
parseLabel(File file, boolean forceParse)
Label
parseLabel(URL url, boolean forceParse)
Parses the given fileLabel
parsePartial(File file, Label parent)
Label
parsePartial(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:
Label
representation 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:
LabelParserException
IOException
-
parsePartial
Label parsePartial(URL url, Label parent) throws LabelParserException, IOException
Parses the given partial label.- Parameters:
url
-- Returns:
Label
representation of the file- Throws:
LabelParserException
IOException
-
parsePartial
Label parsePartial(File file, Label parent) throws LabelParserException, IOException
- Throws:
LabelParserException
IOException
-
-