peiyongz 2004/09/30 07:07:23 Modified: c/src/xercesc/parsers SAX2XMLReaderImpl.hpp SAX2XMLReaderImpl.cpp Log: setInputBufferSize Revision Changes Path 1.26 +15 -0 xml-xerces/c/src/xercesc/parsers/SAX2XMLReaderImpl.hpp Index: SAX2XMLReaderImpl.hpp =================================================================== RCS file: /home/cvs/xml-xerces/c/src/xercesc/parsers/SAX2XMLReaderImpl.hpp,v retrieving revision 1.25 retrieving revision 1.26 diff -u -r1.25 -r1.26 --- SAX2XMLReaderImpl.hpp 8 Sep 2004 13:56:17 -0000 1.25 +++ SAX2XMLReaderImpl.hpp 30 Sep 2004 14:07:23 -0000 1.26 @@ -16,6 +16,9 @@ /* * $Log$ + * Revision 1.26 2004/09/30 14:07:23 peiyongz + * setInputBufferSize + * * Revision 1.25 2004/09/08 13:56:17 peiyongz * Apache License Version 2.0 * @@ -1039,6 +1042,18 @@ * Clear the cached grammar pool */ virtual void resetCachedGrammarPool(); + + /** 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.38 +8 -0 xml-xerces/c/src/xercesc/parsers/SAX2XMLReaderImpl.cpp Index: SAX2XMLReaderImpl.cpp =================================================================== RCS file: /home/cvs/xml-xerces/c/src/xercesc/parsers/SAX2XMLReaderImpl.cpp,v retrieving revision 1.37 retrieving revision 1.38 diff -u -r1.37 -r1.38 --- SAX2XMLReaderImpl.cpp 28 Sep 2004 02:14:14 -0000 1.37 +++ SAX2XMLReaderImpl.cpp 30 Sep 2004 14:07:23 -0000 1.38 @@ -16,6 +16,9 @@ /* * $Log$ + * Revision 1.38 2004/09/30 14:07:23 peiyongz + * setInputBufferSize + * * Revision 1.37 2004/09/28 02:14:14 cargilld * Add support for validating annotations. * @@ -1796,6 +1799,11 @@ void SAX2XMLReaderImpl::resetCachedGrammarPool() { fGrammarResolver->resetCachedGrammar(); +} + +void SAX2XMLReaderImpl::setInputBufferSize(const size_t bufferSize) +{ + fScanner->setInputBufferSize(bufferSize); } Grammar* SAX2XMLReaderImpl::getGrammar(const XMLCh* const nameSpaceKey)
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]