Need double defeat knockout algorithm, can you give an idea, or a reference source is best,
Thank you very much!!!!!
CodePudding user response:
Int strLen=content. length ();If (this. _inputDecorator==null & amp; & StrLen & lt;=32768 & amp; & Enclosing canUseCharArrays ()) {
IOContext CTXT=this. _createContext (content, true);
Char [] buf=CTXT. AllocTokenBuffer strLen ();
Content. getChars (0, strLen, buf, 0);
Return this. _createParser (buf, 0, strLen, CTXT, true);
} else {
Return this. CreateParser ((Reader) (new StringReader (content)));
}