321 |
public synchronized long skip(long n) throws IOException |
public synchronized long skip(long n) throws IOException |
322 |
{ |
{ |
323 |
if (buf == null) |
if (buf == null) |
324 |
throw new IOException("Stream closed."); |
throw new IOException("Stream closed."); |
325 |
|
|
326 |
final long origN = n; |
final long origN = n; |
327 |
|
|
347 |
private boolean refill() throws IOException |
private boolean refill() throws IOException |
348 |
{ |
{ |
349 |
if (buf == null) |
if (buf == null) |
350 |
throw new IOException("Stream closed."); |
throw new IOException("Stream closed."); |
351 |
|
|
352 |
if (markpos == -1 || count - markpos >= marklimit) |
if (markpos == -1 || count - markpos >= marklimit) |
353 |
{ |
{ |
371 |
int numread = super.read(buf, count, bufferSize); |
int numread = super.read(buf, count, bufferSize); |
372 |
|
|
373 |
if (numread <= 0) // EOF |
if (numread <= 0) // EOF |
374 |
return false; |
return false; |
375 |
|
|
376 |
count += numread; |
count += numread; |
377 |
return true; |
return true; |