Class OAIPMHParser
- java.lang.Object
-
- com.lyncode.xoai.serviceprovider.oaipmh.ElementParser<OAIPMHtype>
-
- com.lyncode.xoai.serviceprovider.oaipmh.OAIPMHParser
-
- All Implemented Interfaces:
XMLParser
public class OAIPMHParser extends ElementParser<OAIPMHtype>
-
-
Constructor Summary
Constructors Constructor Description OAIPMHParser(OAIServiceConfiguration<MetadataParser,AboutItemParser,DescriptionParser,AboutSetParser> oaiServiceConfiguration)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static OAIPMHtypeparse(File f, OAIServiceConfiguration<MetadataParser,AboutItemParser,DescriptionParser,AboutSetParser> oaiServiceConfiguration)static OAIPMHtypeparse(InputStream instream, OAIServiceConfiguration<MetadataParser,AboutItemParser,DescriptionParser,AboutSetParser> oaiServiceConfiguration)static OAIPMHtypeparse(String filepath, OAIServiceConfiguration<MetadataParser,AboutItemParser,DescriptionParser,AboutSetParser> oaiServiceConfiguration)protected OAIPMHtypeparseElement(XMLEventReader reader)-
Methods inherited from class com.lyncode.xoai.serviceprovider.oaipmh.ElementParser
getConfiguration, getElement, nextElement, parse
-
-
-
-
Constructor Detail
-
OAIPMHParser
public OAIPMHParser(OAIServiceConfiguration<MetadataParser,AboutItemParser,DescriptionParser,AboutSetParser> oaiServiceConfiguration)
-
-
Method Detail
-
parse
public static OAIPMHtype parse(InputStream instream, OAIServiceConfiguration<MetadataParser,AboutItemParser,DescriptionParser,AboutSetParser> oaiServiceConfiguration) throws ParseException
- Throws:
ParseException
-
parse
public static OAIPMHtype parse(File f, OAIServiceConfiguration<MetadataParser,AboutItemParser,DescriptionParser,AboutSetParser> oaiServiceConfiguration) throws FileNotFoundException, ParseException
- Throws:
FileNotFoundExceptionParseException
-
parse
public static OAIPMHtype parse(String filepath, OAIServiceConfiguration<MetadataParser,AboutItemParser,DescriptionParser,AboutSetParser> oaiServiceConfiguration) throws FileNotFoundException, XMLStreamException, ParseException
-
parseElement
protected OAIPMHtype parseElement(XMLEventReader reader) throws ParseException
- Specified by:
parseElementin classElementParser<OAIPMHtype>- Throws:
ParseException
-
-