| 
 | |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.marc4j.MarcReader
Parses MARC records and reports events to the MarcHandler
 and optionally the ErrorHandler.  
MarcHandler, 
ErrorHandler| Constructor Summary | |
| MarcReader() | |
| Method Summary | |
|  void | parse(InputStream input)Sends an input stream to the MARC parser. | 
|  void | parse(InputStreamReader input)Sends an input stream reader to the MARC parser. | 
|  void | parse(Reader input) | 
|  void | parse(String fileName)Sends a file to the MARC parser. | 
|  void | setErrorHandler(ErrorHandler eh)Registers the ErrorHandlerimplementation. | 
|  void | setMarcHandler(MarcHandler mh)Registers the MarcHandlerimplementation. | 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
public MarcReader()
| Method Detail | 
public void setMarcHandler(MarcHandler mh)
Registers the MarcHandler implementation.
mh - the MarcHandler implementationpublic void setErrorHandler(ErrorHandler eh)
Registers the ErrorHandler implementation.
eh - the ErrorHandler implementation
public void parse(String fileName)
           throws IOException
Sends a file to the MARC parser.
fileName - the filename
IOException
public void parse(InputStream input)
           throws IOException
Sends an input stream to the MARC parser.
input - the input stream
IOException
public void parse(InputStreamReader input)
           throws IOException
Sends an input stream reader to the MARC parser.
input - the input stream reader
IOException
public void parse(Reader input)
           throws IOException
IOException| 
 | |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||