| Method from org.apache.jasper.xmlparser.ASCIIReader Detail: |
public void close() throws IOException {
fInputStream.close();
}
Close the stream. Once a stream has been closed, further read(),
ready(), mark(), or reset() invocations will throw an IOException.
Closing a previously-closed stream, however, has no effect. |
public void mark(int readAheadLimit) throws IOException {
fInputStream.mark(readAheadLimit);
}
Mark the present position in the stream. Subsequent calls to reset()
will attempt to reposition the stream to this point. Not all
character-input streams support the mark() operation. |
public boolean markSupported() {
return fInputStream.markSupported();
}
Tell whether this stream supports the mark() operation. |
public int read() throws IOException {
int b0 = fInputStream.read();
if (b0 > 0x80) {
throw new IOException(Localizer.getMessage("jsp.error.xml.invalidASCII",
Integer.toString(b0)));
}
return b0;
}
|
public int read(char[] ch,
int offset,
int length) throws IOException {
if (length > fBuffer.length) {
length = fBuffer.length;
}
int count = fInputStream.read(fBuffer, 0, length);
for (int i = 0; i < count; i++) {
int b0 = fBuffer[i];
if (b0 > 0x80) {
throw new IOException(Localizer.getMessage("jsp.error.xml.invalidASCII",
Integer.toString(b0)));
}
ch[offset + i] = (char)b0;
}
return count;
}
Read characters into a portion of an array. This method will block
until some input is available, an I/O error occurs, or the end of the
stream is reached. |
public boolean ready() throws IOException {
return false;
}
Tell whether this stream is ready to be read. |
public void reset() throws IOException {
fInputStream.reset();
}
Reset the stream. If the stream has been marked, then attempt to
reposition it at the mark. If the stream has not been marked, then
attempt to reset it in some way appropriate to the particular stream,
for example by repositioning it to its starting point. Not all
character-input streams support the reset() operation, and some support
reset() without supporting mark(). |
public long skip(long n) throws IOException {
return fInputStream.skip(n);
}
Skip characters. This method will block until some characters are
available, an I/O error occurs, or the end of the stream is reached. |