Hi Michael,
you are right, a note refers to that in the input-buffer-size property
description.
If the input-buffer-size cannot be lower than 64, why not put that
specific value directly in the documentation? (for example in
docs/properties.html)

Thanks for the clarification,
Massimo

On 2/12/06, Michael Glavassevich <[EMAIL PROTECTED]> wrote:
> Hi Massimo,
>
> Some of the internal buffers have a lower bound on their size. The ones
> used for reading the input stream cannot be made smaller than 64
> characters. They need to be large enough to hold text which cannot be
> split, like the names of elements and attributes. If the buffer isn't
> large enough it will be increased in size beyond the size specified by the
> input-buffer-size property. I'm pretty sure the docs already mention
> something about that.
>
> Thanks.
>
> Michael Glavassevich
> XML Parser Development
> IBM Toronto Lab
> E-mail: [EMAIL PROTECTED]
> E-mail: [EMAIL PROTECTED]
>
> Massimo Valla <[EMAIL PROTECTED]> wrote on 02/05/2006 05:55:03 PM:
>
> > Hi all,
> > I tried to set the XMLReader input buffer size to 1, using the
> > following code. But when i start to parse, the XMLReader still reads
> > chunks of 64 chars from my BuffredReader.
> > Any idea on why the input-buffer-size is not set correctly?
> > (I use Xerces-J  2.7.1)
> >
> > Thanks a lot,
> > massimo
> >
> > String propId = "http://apache.org/xml/properties/input-buffer-size";;
> >   try {
> >    sp = saxFactory.newSAXParser();
> >    xmlr = sp.getXMLReader();
> >    xmlr.setProperty(propId, new Integer(12));
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to