@@ -33,7 +33,7 @@ public class SimpleCharStream {
33
33
protected boolean prevCharIsLF = false ;
34
34
35
35
protected Provider inputStream ;
36
- private boolean externalBuffer ;
36
+ private boolean isStringProvider ;
37
37
38
38
protected char [] buffer ;
39
39
protected int maxNextCharInd = 0 ;
@@ -98,7 +98,7 @@ protected void ExpandBuff(boolean wrapAround) {
98
98
}
99
99
100
100
protected void FillBuff () throws java .io .IOException {
101
- if (!externalBuffer && maxNextCharInd == available ) {
101
+ if (!isStringProvider && maxNextCharInd == available ) {
102
102
if (available == bufsize ) {
103
103
if (tokenBegin > 2048 ) {
104
104
bufpos = maxNextCharInd = 0 ;
@@ -288,11 +288,11 @@ public void backup(int amount) {
288
288
public SimpleCharStream (Provider dstream , int startline ,
289
289
int startcolumn , int buffersize ) {
290
290
inputStream = dstream ;
291
- externalBuffer = dstream instanceof StringProvider ;
291
+ isStringProvider = dstream instanceof StringProvider ;
292
292
line = startline ;
293
293
column = startcolumn - 1 ;
294
294
295
- if (externalBuffer ) {
295
+ if (isStringProvider ) {
296
296
int bs = ((StringProvider ) inputStream )._string .length ();
297
297
available = bufsize = bs ;
298
298
bufline = new int [bs ];
@@ -326,10 +326,10 @@ public SimpleCharStream(Provider dstream) {
326
326
public void ReInit (Provider dstream , int startline ,
327
327
int startcolumn , int buffersize ) {
328
328
inputStream = dstream ;
329
- externalBuffer = dstream instanceof StringProvider ;
329
+ isStringProvider = dstream instanceof StringProvider ;
330
330
line = startline ;
331
331
column = startcolumn - 1 ;
332
- if (externalBuffer ) {
332
+ if (isStringProvider ) {
333
333
int bs = ((StringProvider ) inputStream )._string .length ();
334
334
available = bufsize = bs ;
335
335
bufline = new int [bs ];
@@ -366,7 +366,7 @@ public void ReInit(Provider dstream) {
366
366
* Get token literal value.
367
367
*/
368
368
public String GetImage () {
369
- if (externalBuffer ) {
369
+ if (isStringProvider ) {
370
370
String data = ((StringProvider ) inputStream )._string ;
371
371
if (bufpos >= tokenBegin ) {
372
372
return data .substring (tokenBegin , bufpos + 1 );
0 commit comments