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 BufferedInputStream) |
if (!(in instanceof PushbackInputStream)) |
365 |
{ |
in = new PushbackInputStream(in); |
366 |
BufferedInputStream bin = (BufferedInputStream) in; |
((PushbackInputStream) in).unread(next_c); |
|
if (bin.pos > 0) |
|
|
bin.pos--; |
|
|
} |
|
|
else if (in instanceof StringBufferInputStream) |
|
|
{ |
|
|
StringBufferInputStream bin = (StringBufferInputStream) in; |
|
|
if (bin.pos > 0) |
|
|
bin.pos--; |
|
|
} |
|
|
else if (in instanceof ByteArrayInputStream) |
|
|
{ |
|
|
ByteArrayInputStream bin = (ByteArrayInputStream) in; |
|
|
if (bin.pos > 0) |
|
|
bin.pos--; |
|
|
} |
|
|
else |
|
|
{ |
|
|
if (! (in instanceof PushbackInputStream)) |
|
|
in = new PushbackInputStream(in); |
|
|
((PushbackInputStream) in).unread(next_c); |
|
|
} |
|
367 |
} |
} |
368 |
break; |
break; |
369 |
} |
} |