From 5978d73622015c37f9f39f45659bf9a3379ea135 Mon Sep 17 00:00:00 2001
From: PeiYong Zhang <peiyongz@apache.org>
Date: Thu, 30 Sep 2004 14:30:23 +0000
Subject: [PATCH] setInputBufferSize

git-svn-id: https://svn.apache.org/repos/asf/xerces/c/trunk@176125 13f79535-47bb-0310-9956-ffa450edef68
---
 doc/program-sax.xml  | 20 ++++++++++++++++++++
 doc/program-sax2.xml | 21 +++++++++++++++++++++
 2 files changed, 41 insertions(+)

diff --git a/doc/program-sax.xml b/doc/program-sax.xml
index 0f13c4cdb..54469cf54 100644
--- a/doc/program-sax.xml
+++ b/doc/program-sax.xml
@@ -477,6 +477,26 @@ void MySAXHandler::fatalError(const SAXParseException&amp; exception)
                     performed.
                 </td></tr>
                 <tr><th><em>Value Type</em></th><td> SecurityManager* </td></tr>
+            </table>                
+            
+            <p/>
+                        
+            <table>            
+                <tr><th
+                colspan="2"><em>setInputBufferSize(const size_t bufferSize)</em></th></tr>
+                <tr><th><em>Description</em></th>
+                <td> 
+                    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.
+                </td></tr>
+                <tr><th><em>Value</em></th>
+                <td> 
+                    The maximum input buffer size
+                </td></tr>
+                <tr><th><em>Value Type</em></th><td> XMLCh* </td></tr>
             </table>
             <p/>
         </s3>
diff --git a/doc/program-sax2.xml b/doc/program-sax2.xml
index 739f058af..75f140d86 100644
--- a/doc/program-sax2.xml
+++ b/doc/program-sax2.xml
@@ -536,6 +536,27 @@ void MySAX2Handler::fatalError(const SAXParseException&amp; exception)
                 <tr><th><em>Value Type</em></th><td> SecurityManager* </td></tr>
                 <tr><th><em>XMLUni Predefined Constant:</em></th><td> fgXercesSecurityManager </td></tr>
             </table>
+            
+            <p/>
+                        
+            <table>            
+                <tr><th
+                colspan="2"><em>setInputBufferSize(const size_t bufferSize)</em></th></tr>
+                <tr><th><em>Description</em></th>
+                <td> 
+                    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.
+                </td></tr>
+                <tr><th><em>Value</em></th>
+                <td> 
+                    The maximum input buffer size
+                </td></tr>
+                <tr><th><em>Value Type</em></th><td> XMLCh* </td></tr>
+            </table>
+                        
             <p/>
           </s4>
         </s3>
-- 
GitLab