peiyongz 2004/09/29 12:00:29 Modified: c/src/xercesc/parsers SAXParser.hpp SAXParser.cpp Log: [jira1207] --patch from Dan Rosen Revision Changes Path 1.35 +15 -0 xml-xerces/c/src/xercesc/parsers/SAXParser.hpp Index: SAXParser.hpp =================================================================== RCS file: /home/cvs/xml-xerces/c/src/xercesc/parsers/SAXParser.hpp,v retrieving revision 1.34 retrieving revision 1.35 diff -u -r1.34 -r1.35 --- SAXParser.hpp 28 Sep 2004 02:14:14 -0000 1.34 +++ SAXParser.hpp 29 Sep 2004 19:00:29 -0000 1.35 @@ -16,6 +16,9 @@ /* * $Log$ + * Revision 1.35 2004/09/29 19:00:29 peiyongz + * [jira1207] --patch from Dan Rosen + * * Revision 1.34 2004/09/28 02:14:14 cargilld * Add support for validating annotations. * @@ -985,6 +988,18 @@ * @param scannerName The name of the desired scanner */ void useScanner(const XMLCh* const scannerName); + + /** Set maximum input buffer size + * + * This method allows users to limit the size of buffers used in parsing + * XML character data. The effect of setting this size is to limit the + * size of a ContentHandler::characters() call. + * + * The parser's default input buffer size is 1 megabyte. + * + * @param bufferSize The maximum input buffer size + */ + void setInputBufferSize(const size_t bufferSize); //@} 1.36 +7 -0 xml-xerces/c/src/xercesc/parsers/SAXParser.cpp Index: SAXParser.cpp =================================================================== RCS file: /home/cvs/xml-xerces/c/src/xercesc/parsers/SAXParser.cpp,v retrieving revision 1.35 retrieving revision 1.36 diff -u -r1.35 -r1.36 --- SAXParser.cpp 28 Sep 2004 02:14:14 -0000 1.35 +++ SAXParser.cpp 29 Sep 2004 19:00:29 -0000 1.36 @@ -16,6 +16,9 @@ /* * $Log$ + * Revision 1.36 2004/09/29 19:00:29 peiyongz + * [jira1207] --patch from Dan Rosen + * * Revision 1.35 2004/09/28 02:14:14 cargilld * Add support for validating annotations. * @@ -696,6 +699,10 @@ } } +void SAXParser::setInputBufferSize(const size_t bufferSize) +{ + fScanner->setInputBufferSize(bufferSize); +} // --------------------------------------------------------------------------- // SAXParser: Overrides of the SAX Parser interface
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]