@@ -33,7 +33,7 @@ public class SimpleCharStream {
3333 protected boolean prevCharIsLF = false ;
3434
3535 protected Provider inputStream ;
36- private boolean externalBuffer ;
36+ private boolean isStringProvider ;
3737
3838 protected char [] buffer ;
3939 protected int maxNextCharInd = 0 ;
@@ -98,7 +98,7 @@ protected void ExpandBuff(boolean wrapAround) {
9898 }
9999
100100 protected void FillBuff () throws java .io .IOException {
101- if (!externalBuffer && maxNextCharInd == available ) {
101+ if (!isStringProvider && maxNextCharInd == available ) {
102102 if (available == bufsize ) {
103103 if (tokenBegin > 2048 ) {
104104 bufpos = maxNextCharInd = 0 ;
@@ -288,11 +288,11 @@ public void backup(int amount) {
288288 public SimpleCharStream (Provider dstream , int startline ,
289289 int startcolumn , int buffersize ) {
290290 inputStream = dstream ;
291- externalBuffer = dstream instanceof StringProvider ;
291+ isStringProvider = dstream instanceof StringProvider ;
292292 line = startline ;
293293 column = startcolumn - 1 ;
294294
295- if (externalBuffer ) {
295+ if (isStringProvider ) {
296296 int bs = ((StringProvider ) inputStream )._string .length ();
297297 available = bufsize = bs ;
298298 bufline = new int [bs ];
@@ -326,10 +326,10 @@ public SimpleCharStream(Provider dstream) {
326326 public void ReInit (Provider dstream , int startline ,
327327 int startcolumn , int buffersize ) {
328328 inputStream = dstream ;
329- externalBuffer = dstream instanceof StringProvider ;
329+ isStringProvider = dstream instanceof StringProvider ;
330330 line = startline ;
331331 column = startcolumn - 1 ;
332- if (externalBuffer ) {
332+ if (isStringProvider ) {
333333 int bs = ((StringProvider ) inputStream )._string .length ();
334334 available = bufsize = bs ;
335335 bufline = new int [bs ];
@@ -366,7 +366,7 @@ public void ReInit(Provider dstream) {
366366 * Get token literal value.
367367 */
368368 public String GetImage () {
369- if (externalBuffer ) {
369+ if (isStringProvider ) {
370370 String data = ((StringProvider ) inputStream )._string ;
371371 if (bufpos >= tokenBegin ) {
372372 return data .substring (tokenBegin , bufpos + 1 );
0 commit comments