Closeable
, AutoCloseable
, Readable
public class MockCharFilter extends CharStream
Constructor | Description |
---|---|
MockCharFilter(Reader in) |
|
MockCharFilter(Reader in,
int remainder) |
Modifier and Type | Method | Description |
---|---|---|
protected void |
addOffCorrectMap(int off,
int cumulativeDiff) |
|
void |
close() |
|
int |
correctOffset(int currentOff) |
Called by CharFilter(s) and Tokenizer to correct token offset.
|
int |
read() |
|
int |
read(char[] cbuf,
int off,
int len) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
mark, markSupported, read, read, ready, reset, skip, transferTo
public MockCharFilter(Reader in, int remainder)
public MockCharFilter(Reader in)
public void close() throws IOException
close
in interface AutoCloseable
close
in interface Closeable
close
in class Reader
IOException
public int read() throws IOException
read
in class Reader
IOException
public int read(char[] cbuf, int off, int len) throws IOException
read
in class Reader
IOException
public int correctOffset(int currentOff)
CharStream
correctOffset
in class CharStream
currentOff
- offset as seen in the outputprotected void addOffCorrectMap(int off, int cumulativeDiff)
Copyright © 2000-2018 Apache Software Foundation. All Rights Reserved.