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.Reader
java.io.IOException
public int read(char[] c, int off, int len) throws java.io.IOException
read
in class java.io.Reader
java.io.IOException
public long skip(long count) throws java.io.IOException
skip
in class java.io.Reader
java.io.IOException
public void close() throws java.io.IOException
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
close
in class java.io.Reader
java.io.IOException
public void setLimit(int length)
public final int getLimit()
public int clearLimit()
clearLimit
in interface Limit
Apache Derby V10.13 Internals - Copyright © 2004,2016 The Apache Software Foundation. All Rights Reserved.