361 |
int next_c = in.read(); |
int next_c = in.read(); |
362 |
if (next_c != '\n' && next_c != -1) |
if (next_c != '\n' && next_c != -1) |
363 |
{ |
{ |
364 |
if (! (in instanceof PushbackInputStream)) |
if (in instanceof BufferedInputStream) |
365 |
in = new PushbackInputStream(in); |
{ |
366 |
((PushbackInputStream) in).unread(next_c); |
BufferedInputStream bin = (BufferedInputStream) in; |
367 |
|
if (bin.pos > 0) |
368 |
|
bin.pos--; |
369 |
|
} |
370 |
|
else if (in instanceof StringBufferInputStream) |
371 |
|
{ |
372 |
|
StringBufferInputStream bin = (StringBufferInputStream) in; |
373 |
|
if (bin.pos > 0) |
374 |
|
bin.pos--; |
375 |
|
} |
376 |
|
else if (in instanceof ByteArrayInputStream) |
377 |
|
{ |
378 |
|
ByteArrayInputStream bin = (ByteArrayInputStream) in; |
379 |
|
if (bin.pos > 0) |
380 |
|
bin.pos--; |
381 |
|
} |
382 |
|
else |
383 |
|
{ |
384 |
|
if (! (in instanceof PushbackInputStream)) |
385 |
|
in = new PushbackInputStream(in); |
386 |
|
((PushbackInputStream) in).unread(next_c); |
387 |
|
} |
388 |
} |
} |
389 |
break; |
break; |
390 |
} |
} |