| Modifier and Type | Field and Description |
|---|---|
private boolean |
limitInPlace |
private java.io.Reader |
reader |
private int |
remainingCharacters |
| Constructor and Description |
|---|
LimitReader(java.io.Reader reader)
Construct a LimitReader and call the clearLimit() method.
|
| Modifier and Type | Method and Description |
|---|---|
int |
clearLimit()
Clear any limit set by setLimit.
|
void |
close() |
int |
getLimit()
return limit of the stream that can be read without throwing
EOFException
|
int |
read() |
int |
read(char[] c,
int off,
int len) |
void |
setLimit(int length)
Set the limit of the stream that can be read.
|
long |
skip(long count) |
private int remainingCharacters
private boolean limitInPlace
private java.io.Reader reader
public LimitReader(java.io.Reader reader)
public int read()
throws java.io.IOException
read in class java.io.Readerjava.io.IOExceptionpublic int read(char[] c,
int off,
int len)
throws java.io.IOException
read in class java.io.Readerjava.io.IOExceptionpublic long skip(long count)
throws java.io.IOException
skip in class java.io.Readerjava.io.IOExceptionpublic void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in class java.io.Readerjava.io.IOExceptionpublic void setLimit(int length)
public final int getLimit()
public int clearLimit()
clearLimit in interface LimitApache Derby V10.10 Internals - Copyright © 2004,2014 The Apache Software Foundation. All Rights Reserved.