ORG.oclc.RecordHandler
Class HandleUSMARC
java.lang.Object
|
+--ORG.oclc.RecordHandler.RecordHandler
|
+--ORG.oclc.RecordHandler.HandleUSMARC
- public class HandleUSMARC
- extends RecordHandler
HandleUSMARC
public HandleUSMARC()
bytesToInt
public static final int bytesToInt(byte[] buf,
int offset,
int len)
fldid
public static final byte fldid(int subFieldTag)
fromDataDir
public byte[] fromDataDir(DataDir dir)
throws MalformedRecordException
- Overrides:
- fromDataDir in class RecordHandler
Input
public void Input(String inputFileName)
throws IOException,
UnsupportedEncodingException
- Overrides:
- Input in class RecordHandler
intToBytes
public static final byte[] intToBytes(int val,
int len)
intToString
public static final String intToString(int val,
int len)
Input
public void Input(String inputFileName,
LocalByteConverter lbc)
throws IOException,
UnsupportedEncodingException
- Overrides:
- Input in class RecordHandler
loadRecord
public byte[] loadRecord()
throws IOException,
EOFException
- returns null at normal end-of-file and throws EOFException at abnormal
end of file
- Overrides:
- loadRecord in class RecordHandler
makesRecords
public boolean makesRecords()
- Overrides:
- makesRecords in class RecordHandler
toDataDir
public DataDir toDataDir(byte[] rec)
throws CharConversionException
- Overrides:
- toDataDir in class RecordHandler
setDelimiters
public void setDelimiters(int recordTerminator,
int fieldTerminator,
int subfieldDelimiter)
toString
public String toString()
- Overrides:
- toString in class RecordHandler