Constructor and Description |
---|
CDXReader()
Create a new CDXReader with no file.
|
CDXReader(File cdxFile)
Create a new CDXReader that reads the given file.
|
Modifier and Type | Method and Description |
---|---|
void |
addCDXFile(File cdxFile)
Add another CDX file to those being searched.
|
void |
addCDXRecordFilter(CDXRecordFilter cdxrecfilter)
Add another CDXRecordFilter to the list of filters to use when searching.
|
void |
clearCDXFiles()
Forget about all CDX files.
|
CDXRecordFilter |
getCDXRecordFilter(String filtername)
Get a specific filter by the name of the filter - if not found return null.
|
Map<String,CDXRecordFilter> |
getFilters()
Get a table of all filters.
|
ARCKey |
getKey(String uri)
Look up an entry in CDX files.
|
void |
removeAllCDXRecordFilters()
Remove all CDXRecordFilters.
|
void |
removeCDXRecordFilter(String filtername)
Remove a specific filter by the name of the filter.
|
public CDXReader(File cdxFile)
cdxFile
- A CDX file to read.IOFailure
- If the file cannot be found.public CDXReader()
public void addCDXFile(File cdxFile)
cdxFile
- A CDX file to search.IOFailure
- If the file cannot be found or readpublic void clearCDXFiles()
public void addCDXRecordFilter(CDXRecordFilter cdxrecfilter) throws ArgumentNotValid
cdxrecfilter
- A CDXRecordFilter to use when searching.ArgumentNotValid
- If the filter is invalid or another filter exists with the same name.public void removeAllCDXRecordFilters()
public Map<String,CDXRecordFilter> getFilters()
public CDXRecordFilter getCDXRecordFilter(String filtername)
filtername
- The given filtername.public void removeCDXRecordFilter(String filtername)
filtername
- The given filtername.UnknownID
- if there is no filter of that name.Copyright © 2005–2015 The Royal Danish Library, the Danish State and University Library, the National Library of France and the Austrian National Library.. All rights reserved.