public class Harvester extends Object
| Constructor and Description |
|---|
Harvester(String baseUrl)
Constructs the harvester using a repository URL.
|
| Modifier and Type | Method and Description |
|---|---|
Record |
getRecord(String identifier,
String metadataPrefix)
Returns a Record object harvested by his identifier
using 'oai_dc' as metadataPrefix
|
ResumptionToken |
getResumptionToken() |
Identify |
identify()
Returns an
Identify object containing information about the OAI respository. |
List<Header> |
listIdentifiers(String metadataPrefix)
Returns a List of
Header type. |
List<Header> |
listIdentifiers(String from,
String until,
String set,
String metadataPrefix)
Returns a List of
Header type, using selective harvesting. |
List<MetadataFormat> |
listMetadataFormats()
Returns a List of
MetadataFormats supported by the repository. |
List<MetadataFormat> |
listMetadataFormats(String identifier)
Returns a List of
MetadataFormats from a given identifier. |
RecordIterator |
listRecords(String metadataPrefix)
Harvest all the
Records from a repository |
RecordIterator |
listRecords(String from,
String until,
String set,
String metadataPrefix)
Selective harvest of
Records from a repository |
List<Set> |
listSets()
Returns a List of
Set type. |
public Identify identify() throws Exception
Identify object containing information about the OAI respository.public List<Header> listIdentifiers(String from, String until, String set, String metadataPrefix) throws Exception
Header type, using selective harvesting.public List<Header> listIdentifiers(String metadataPrefix) throws Exception
Header type.public List<MetadataFormat> listMetadataFormats() throws Exception
MetadataFormats supported by the repository.public List<MetadataFormat> listMetadataFormats(String identifier) throws Exception
MetadataFormats from a given identifier.public Record getRecord(String identifier, String metadataPrefix) throws Exception
identifier - A OAI document identifier.Exceptionpublic RecordIterator listRecords(String from, String until, String set, String metadataPrefix) throws Exception
Records from a repositoryfrom - A date.until - A date.set - A set supported by the repository.RecordIteratorExceptionpublic RecordIterator listRecords(String metadataPrefix) throws FileNotFoundException, Exception
Records from a repositoryRecordIteratorFileNotFoundExceptionExceptionpublic ResumptionToken getResumptionToken() throws Exception
ExceptionCopyright © 2014. All Rights Reserved.