Open SiteSearch 4.1.1
Final

ORG.oclc.RecordHandler
Class HandleUSMARC

java.lang.Object
  |
  +--ORG.oclc.RecordHandler.RecordHandler
        |
        +--ORG.oclc.RecordHandler.HandleUSMARC

public class HandleUSMARC
extends RecordHandler


Constructor Summary
HandleUSMARC()
           
 
Method Summary
static int bytesToInt(byte[] buf, int offset, int len)
           
static byte fldid(int subFieldTag)
           
 byte[] fromDataDir(DataDir dir)
           
 void Input(String inputFileName)
           
 void Input(String inputFileName, LocalByteConverter lbc)
           
static byte[] intToBytes(int val, int len)
           
static String intToString(int val, int len)
           
 byte[] loadRecord()
          returns null at normal end-of-file and throws EOFException at abnormal end of file
 boolean makesRecords()
           
 void setDelimiters(int recordTerminator, int fieldTerminator, int subfieldDelimiter)
           
 DataDir toDataDir(byte[] rec)
           
 String toString()
           
 
Methods inherited from class ORG.oclc.RecordHandler.RecordHandler
getHandler, getNextRecord, main
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

HandleUSMARC

public HandleUSMARC()
Method Detail

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

Open SiteSearch 4.1.1
Final