new-javacc commented on issue #1324:
URL: https://github.com/apache/jena/issues/1324#issuecomment-1179575344

   Also if your parser can receive the whole input as a string, you can just 
use a SimpleCharStream with bufffer size as the length of the string itself and 
instantiate it with a StringReader. Like:
   
   SimpleCharStream simpleCharStream = new SimpleCharStream(new 
StringReader(input), input.length(), 1, 1)
   
   Which makes sure it will never call ExpandBuf!


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to