lib/parser.js
function SDFSplitter(handler) {
        parser.SDFTransform.call(this);

        this.on('data', function (chunk) {
            handler(String(chunk));
        });
    }
function SDFSplitter(handler) {
        parser.SDFTransform.call(this);

        this.on('data', function (chunk) {
            handler(String(chunk));
        });
    }
function SDFSplitter ( handler ) { parser . SDFTransform . call ( this ) ; this . on ( 'data' , function ( chunk ) { handler ( String ( chunk ) ) ; } ) ; }
A Writable stream that splits an SDF file into individual MOL file segments
suitable for passing to parseMol.

Output is via callback.  See SDFTransform for output via Streams API

@class SDFSplitter
 

@constructor
@method SDFSplitter
@param {Function} callback function to call with molfile data
@return {SDFSplitter} a Writable stream which calls the supplied callback
once per molfile in the supplied SDFSplitter stream
A Writable stream that splits an SDF file into individual MOL file segments suitable for passing to parseMol .