org.apache.archiva.xml
Class LatinEntityResolutionReader
java.lang.Object
java.io.Reader
org.apache.archiva.xml.LatinEntityResolutionReader
- All Implemented Interfaces:
- Closeable, Readable
public class LatinEntityResolutionReader
- extends Reader
LatinEntityResolutionReader - Read a Character Stream.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
originalReader
private BufferedReader originalReader
leftover
private char[] leftover
entityPattern
private Pattern entityPattern
LatinEntityResolutionReader
public LatinEntityResolutionReader(Reader reader)
read
public int read(char[] destbuf,
int offset,
int length)
throws IOException
- 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.
- Specified by:
read
in class Reader
- Parameters:
destbuf
- Destination bufferoffset
- Offset (in destination buffer) at which to start storing characterslength
- Maximum number of characters to read
- Returns:
- The number of characters read, or -1 if the end of the stream has been reached
- Throws:
IOException
- if an I/O error occurs.
getExpandedBuffer
private StringBuilder getExpandedBuffer(int minimumLength)
throws IOException
- Throws:
IOException
expandLine
private String expandLine(String line)
close
public void close()
throws IOException
- Specified by:
close
in interface Closeable
- Specified by:
close
in class Reader
- Throws:
IOException
Copyright © 2006-2013 The Apache Software Foundation. All Rights Reserved.