org.apache.archiva.xml
Class LatinEntityResolutionReader

java.lang.Object
  extended by java.io.Reader
      extended by org.apache.archiva.xml.LatinEntityResolutionReader
All Implemented Interfaces:
Closeable, Readable

public class LatinEntityResolutionReader
extends Reader

LatinEntityResolutionReader - Read a Character Stream.


Field Summary
private  Pattern entityPattern
           
private  char[] leftover
           
private  BufferedReader originalReader
           
 
Fields inherited from class java.io.Reader
lock
 
Constructor Summary
LatinEntityResolutionReader(Reader reader)
           
 
Method Summary
 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.
 
Methods inherited from class java.io.Reader
mark, markSupported, read, read, read, ready, reset, skip
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

originalReader

private BufferedReader originalReader

leftover

private char[] leftover

entityPattern

private Pattern entityPattern
Constructor Detail

LatinEntityResolutionReader

public LatinEntityResolutionReader(Reader reader)
Method Detail

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 buffer
offset - Offset (in destination buffer) at which to start storing characters
length - 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.