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 Reader
destbuf
- 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
IOException
private String expandLine(String line)
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class Reader
IOException
Copyright © 2006–2022 The Apache Software Foundation. All rights reserved.