|
Open SiteSearch 4.1.1 Final |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--ORG.oclc.z39.MarcDecoder
MarcDecoder allows ZBase to decode Marc records.
Constructor Summary | |
MarcDecoder(InputStream in)
Constructs a MarcDecoder object using the input InputStream Object. |
|
MarcDecoder(String data)
Initializes an object so that individual Marc field 000 and Marc field 008 elements may be picked out of a String containing the entire field. |
Method Summary | |
char |
bibliographicLevel()
|
char |
byteBeforeDate1()
|
char |
catalogingSourceCode()
|
char[] |
date1()
|
char[] |
date2()
|
char[] |
dateRecordEntered()
|
char |
encodingLevel()
|
static String |
formatmarc(String begrec,
int linelen)
Method to format a marc record into something suitable for display. |
char[] |
languageIndex()
|
static boolean |
marc2dir(String begrec,
DataDir dir,
boolean frequencyEncode)
Method to format a marc record into BER. |
char |
modifiedRecordIndicator()
|
byte[] |
record()
Returns a byte array object representation of the input data. |
char |
recordStatus()
|
char |
recordType()
|
String |
stringData()
Returns a string representation of the input data. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
public MarcDecoder(String data)
data
- String containing data for the Marc field.public MarcDecoder(InputStream in) throws FileNotFoundException, IOException, EOFException
in
- InputStreamMethod Detail |
public byte[] record()
public String stringData()
public final char recordStatus()
public final char recordType()
public final char bibliographicLevel()
public final char encodingLevel()
public final char[] dateRecordEntered()
public final char byteBeforeDate1()
public final char[] date1()
public final char[] date2()
public final char[] languageIndex()
public final char modifiedRecordIndicator()
public final char catalogingSourceCode()
public static final String formatmarc(String begrec, int linelen)
begrec
- Marc record.linelen
- Desired length of formatted lines.public static boolean marc2dir(String begrec, DataDir dir, boolean frequencyEncode)
begrec
- Marc record.dir
- parent node of DataDir to hold BER record.frequencyEncode
- flag to turn on frequency encoding of marc tags.
|
Open SiteSearch 4.1.1 Final |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |