public class LatinEntityResolutionReader extends Reader
| Modifier and Type | Field and Description |
|---|---|
private Pattern |
entityPattern |
private char[] |
leftover |
private BufferedReader |
originalReader |
| Constructor and Description |
|---|
LatinEntityResolutionReader(Reader reader) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
private String |
expandLine(String line) |
private StringBuilder |
getExpandedBuffer(int minimumLength) |
int |
read(char[] destbuf,
int offset,
int length)
Read characters into a portion of an array.
|
private BufferedReader originalReader
private char[] leftover
private Pattern entityPattern
public LatinEntityResolutionReader(Reader reader)
public int read(char[] destbuf, int offset, int length) throws IOException
read in class Readerdestbuf - Destination bufferoffset - Offset (in destination buffer) at which to start storing characterslength - Maximum number of characters to readIOException - if an I/O error occurs.private StringBuilder getExpandedBuffer(int minimumLength) throws IOException
IOExceptionprivate String expandLine(String line)
public void close() throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class ReaderIOExceptionCopyright © 2006–2023 The Apache Software Foundation. All rights reserved.