|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectIndexSource
MARCIndexSource
public class MARCIndexSource
Supplies MARC data to an XTF index, breaking it up into individual MARCXML records.
Nested Class Summary | |
---|---|
private class |
MARCIndexSource.RecordHandler
Handles running blocks of records through the stylesheet |
Field Summary | |
---|---|
private Templates |
displayStyle
Stylesheet from which to gather XSLT key definitions to be computed and cached on disk. |
private long |
fileSize
Size of the whole input file |
private boolean |
isDone
Are we there yet? |
private String |
key
Key used to identify this file in the index |
private File |
path
Path to the file, or null if it's not a local file. |
private Templates[] |
preFilters
XSLT pre-filters used to massage the XML document (null for none) |
private CountedInputStream |
rawStream
Input stream for the raw data |
private MARCIndexSource.RecordHandler |
recordHandler
Record handling thread |
private int |
recordNum
|
Constructor Summary | |
---|---|
MARCIndexSource(File path,
String key,
Templates[] preFilters,
Templates displayStyle)
Constructor -- initializes all the fields |
Method Summary | |
---|---|
Templates |
displayStyle()
Stylesheet from which to gather XSLT key definitions to be computed and cached on disk. |
String |
key()
Obtain a unique key for this input file |
IndexRecord |
nextRecord()
Obtain the next record from the file, or null if no more. |
private void |
openFile()
|
File |
path()
Obtain the path to the file (or null if it's not a local file) |
Templates[] |
preFilters()
Obtain set of prefilters to be run, serially in order, on each input record. |
long |
totalSize()
Obtain the total size of the source file (used to calculate overall % done). |
Methods inherited from class Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private File path
private String key
private Templates[] preFilters
private Templates displayStyle
private long fileSize
private CountedInputStream rawStream
private MARCIndexSource.RecordHandler recordHandler
private boolean isDone
private int recordNum
Constructor Detail |
---|
public MARCIndexSource(File path, String key, Templates[] preFilters, Templates displayStyle)
Method Detail |
---|
public File path()
IndexSource
path
in class IndexSource
public String key()
IndexSource
key
in class IndexSource
public Templates[] preFilters()
IndexSource
preFilters
in class IndexSource
public Templates displayStyle()
IndexSource
displayStyle
in class IndexSource
public long totalSize()
IndexSource
totalSize
in class IndexSource
public IndexRecord nextRecord() throws SAXException, IOException
IndexSource
nextRecord
in class IndexSource
SAXException
IOException
private void openFile() throws IOException
IOException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |