public final class CharReader extends CharStream
CharStream, defining an
identify function correctOffset(int) method that
simply returns the provided offset.| Modifier and Type | Method and Description |
|---|---|
void |
close() |
int |
correctOffset(int currentOff)
Called by CharFilter(s) and Tokenizer to correct token offset.
|
static CharStream |
get(java.io.Reader input) |
void |
mark(int readAheadLimit) |
boolean |
markSupported() |
int |
read(char[] cbuf,
int off,
int len) |
void |
reset() |
public static CharStream get(java.io.Reader input)
public int correctOffset(int currentOff)
CharStreamcorrectOffset in class CharStreamcurrentOff - offset as seen in the outputpublic void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in class java.io.Readerjava.io.IOExceptionpublic int read(char[] cbuf,
int off,
int len)
throws java.io.IOException
read in class java.io.Readerjava.io.IOExceptionpublic boolean markSupported()
markSupported in class java.io.Readerpublic void mark(int readAheadLimit)
throws java.io.IOException
mark in class java.io.Readerjava.io.IOExceptionpublic void reset()
throws java.io.IOException
reset in class java.io.Readerjava.io.IOExceptionCopyright © 2000-2022 Apache Software Foundation. All Rights Reserved.