XML::Filter::Sort::BufferMgr 1.01
Sponsored Links
XML::Filter::Sort::BufferMgr 1.01 Ranking & Summary
File size:
0.025 MB
Platform:
Any Platform
License:
Perl Artistic License
Price:
Downloads:
848
Date added:
2007-06-29
Publisher:
Grant McLean
XML::Filter::Sort::BufferMgr 1.01 description
XML::Filter::Sort::BufferMgr is a Perl implementation class used by XML::Filter::Sort.
The documentation is targetted at developers wishing to extend or replace this class. For user documentation, see XML::Filter::Sort.
Two classes are used to implement buffering records and spooling them back out in sorted order as SAX events. One instance of the XML::Filter::Sort::Buffer class is used to buffer each record and one or more instances of the XML::Filter::Sort::BufferMgr class are used to manage the buffers.
API METHODS
The API of this module as used by XML::Filter::Sort::Buffer consists of the following sequence of method calls:
When the first record in a sequence is encountered, XML::Filter::Sort creates a XML::Filter::Sort::BufferMgr object using the new() method.
XML::Filter::Sort calls the buffer managers new_buffer() method to get a XML::Filter::Sort::Buffer object and all SAX events are directed to this object until the end of the record is encountered. The following events are supported by the current buffer implementation:
start_element()
characters()
comment()
processing_instruction()
end_element()
When the end of the record is detected, XML::Filter::Sort calls the buffer managers close_buffer() method, which in turn calls the buffers close() method. The close() method returns a list of values for the sort keys and the buffer manager uses these to store the buffer for later recall. Subsequent records are handled as per step 2.
When the last record has been buffered, XML::Filter::Sort calls the buffer managers to_sax() method. The buffer manager retrieves each of the buffers in sorted order and calls the buffers to_sax() method.
Each buffer attempts to match the sort key paths as SAX events are received. Once a value has been found for a given key, that same path match is not attempted against subsequent events. For efficiency, the code to match each key is compiled into a closure. For even more efficiency, this compilation is done once when the XML::Filter::Sort object is created. The compile_matches() method in the buffer manager class calls the compile_matches() method in the buffer class to achieve this.
The documentation is targetted at developers wishing to extend or replace this class. For user documentation, see XML::Filter::Sort.
Two classes are used to implement buffering records and spooling them back out in sorted order as SAX events. One instance of the XML::Filter::Sort::Buffer class is used to buffer each record and one or more instances of the XML::Filter::Sort::BufferMgr class are used to manage the buffers.
API METHODS
The API of this module as used by XML::Filter::Sort::Buffer consists of the following sequence of method calls:
When the first record in a sequence is encountered, XML::Filter::Sort creates a XML::Filter::Sort::BufferMgr object using the new() method.
XML::Filter::Sort calls the buffer managers new_buffer() method to get a XML::Filter::Sort::Buffer object and all SAX events are directed to this object until the end of the record is encountered. The following events are supported by the current buffer implementation:
start_element()
characters()
comment()
processing_instruction()
end_element()
When the end of the record is detected, XML::Filter::Sort calls the buffer managers close_buffer() method, which in turn calls the buffers close() method. The close() method returns a list of values for the sort keys and the buffer manager uses these to store the buffer for later recall. Subsequent records are handled as per step 2.
When the last record has been buffered, XML::Filter::Sort calls the buffer managers to_sax() method. The buffer manager retrieves each of the buffers in sorted order and calls the buffers to_sax() method.
Each buffer attempts to match the sort key paths as SAX events are received. Once a value has been found for a given key, that same path match is not attempted against subsequent events. For efficiency, the code to match each key is compiled into a closure. For even more efficiency, this compilation is done once when the XML::Filter::Sort object is created. The compile_matches() method in the buffer manager class calls the compile_matches() method in the buffer class to achieve this.
XML::Filter::Sort::BufferMgr 1.01 Screenshot
Advertisements
XML::Filter::Sort::BufferMgr 1.01 Keywords
XML
BufferMgr
BufferMgr 1.01
SAX
Sort
used by
Perl Implementation
Implementation class
buffer
method
class
used
calls
record
XML::Filter::Sort::BufferMgr
XMLFilterSortBufferMgr
Bookmark XML::Filter::Sort::BufferMgr 1.01
XML::Filter::Sort::BufferMgr 1.01 Copyright
WareSeeker periodically updates pricing and software information of XML::Filter::Sort::BufferMgr 1.01 full version from the publisher, so some information may be slightly out-of-date. You should confirm all information before relying on it. Software piracy is theft, Using crack, password, serial numbers, registration codes, key generators is illegal and prevent future development of XML::Filter::Sort::BufferMgr 1.01 Edition. Download links are directly from our publisher sites, torrent files or links from rapidshare.com, yousendit.com or megaupload.com are not allowed
Featured Software
Want to place your software product here?
Please contact us for consideration.
Contact WareSeeker.com
Related Information
classic industries
methodist hospital houston
buffered aspirin
it is being used by another person or program
scientific method
buffet
classified ads
methodist medical center
buffer technologies
used bikes
classmates
bufferedreader
used cars for sale
methodist hospital
used by a conductor to lead the symphony
buffer zone
buffer solution
united methodist church
Related Software
XML::Filter::Sort::Buffer is an implementation class used by XML::Filter::Sort. Free Download
XML::Filter::Sort is a SAX filter for sorting elements in XML. Free Download
XML::Filter::Tee can send SAX events to multiple processor, with switching. Free Download
XML::Filter::DOMFilter::LibXML is a SAX Filter allowing DOM processing of selected subtrees. Free Download
Sax Filter is a modular set of filters that can be used to process XML documents via Javas SAX support. Free Download
XML::Filter::Dispatcher::Compiler can compile rulesets in to code. Free Download
PHP Client Sniffer is a PHP class file that allows one to quickly determine the clients browser. Free Download
Extend For JavaScript allows you to use traditional single-class inheritance in your JavaScript applications. Free Download
Latest Software
Popular Software
Favourite Software