mySobek Home   |   Help
Skip Navigation Links.
Expand <a href='http://sobekrepository.org/sobekcm' title='Sobek home page'>Project Home</a>Project Home
Expand <a href='http://sobekrepository.org/help' title='Online user help'>User Help</a>User Help
Expand <a href='http://sobekrepository.org/sobekcm/technical' title='Sobek home page'>Technical Help</a>Technical Help
Expand <a href='http://sobekrepository.org/software' title='Center for downloading all SobekCM-related software'>Download Center</a>Download Center
Training Videos
Collapse <a href='http://sobekrepository.org/codehelp' title='Details on each of the different classes, interfaces, properties, etc..'>Code Details</a>Code Details
MISSING BANNER
Code Details >> Resource_Object >> MARC >> Parsers >> MARC21_Exchange_Format_Parser

MARC21_Exchange_Format_Parser Class



Parser steps through the records in a MARC21 Electronic Format file or stream.


Namespace: SobekCM.Resource_Object.MARC.Parsers
Assembly: SobekCM_Resource_Object (in SobekCM_Resource_Object.dll) Version: 4.10.0.0 (4.10.0)

Syntax

C#
public class MARC21_Exchange_Format_Parser : IEnumerable<MARC_Record>, 
	IEnumerable, IEnumerator<MARC_Record>, IDisposable, IEnumerator

Remarks

Written by Mark Sullivan (2005)

You can either pass in the stream or file to read into the constructor and immediately begin using Next() to step through them, or you can use the empty constructor and call the Parse methods for the first record.

To use the IEnumerable interface, you must pass in the Stream or filename in the constructor.

Inheritance Hierarchy

System..::..Object
  SobekCM.Resource_Object.MARC.Parsers..::..MARC21_Exchange_Format_Parser

Constructors

  NameDescription
Public methodMARC21_Exchange_Format_Parser()()()()
Constructor for a new instance of this class
Public methodMARC21_Exchange_Format_Parser(Stream)
Constructor for a new instance of this class
Public methodMARC21_Exchange_Format_Parser(String)
Constructor for a new instance of this class

Methods

  NameDescription
Public methodClose
Close the stream reader used for this parsing
Public methodDispose
Close any open streams which may remain
Public methodGetEnumerator
Gets the IEnumerator for this (itself)
Public methodMoveNext
Moves to the next record, and returns TRUE if one existed
Public methodNext
Returns the next record in the MARC21 Electronic format file or stream
Public methodParse(Stream)
Begins parsing from a stream containing MARC21 Electronic format records.
Public methodParse(String)
Begins parsing a new MARC21 Electronic format file.
Public methodReset
Resets the base stream, if that is possible

Fields

  NameDescription
Public fieldStatic memberAction_On_Error
Variable indicates what action should be taken when an error is encountered while parsing a MARC21 file

Properties

  NameDescription
Public propertyCurrent
Returns the current record
Public propertyEOF_Flag
Flag indicates if an end of file has been reached

See Also



Version 4.10.0 ( last generated Monday, March 7, 2016 )