Apigen

edu.uci.isr.apigen
Class StringReplacerReader

java.lang.Object
  extended byjava.io.Reader
      extended byjava.io.FilterReader
          extended byedu.uci.isr.apigen.StringReplacerReader

public class StringReplacerReader
extends FilterReader


Field Summary
protected  StringBuffer inbuf
           
protected  StringBuffer outbuf
           
(package private)  int pointer
           
protected  String replaceString
           
protected  String targetString
           
 
Fields inherited from class java.io.FilterReader
in
 
Fields inherited from class java.io.Reader
lock
 
Constructor Summary
StringReplacerReader(Reader r, String targetString, String replaceString)
           
 
Method Summary
 int read()
           
 int read(char[] cbuf)
           
 int read(char[] cbuf, int off, int len)
           
 
Methods inherited from class java.io.FilterReader
close, mark, markSupported, ready, reset, skip
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

targetString

protected String targetString

replaceString

protected String replaceString

pointer

int pointer

inbuf

protected StringBuffer inbuf

outbuf

protected StringBuffer outbuf
Constructor Detail

StringReplacerReader

public StringReplacerReader(Reader r,
                            String targetString,
                            String replaceString)
Method Detail

read

public int read()
         throws IOException
Throws:
IOException

read

public int read(char[] cbuf,
                int off,
                int len)
         throws IOException
Throws:
IOException

read

public int read(char[] cbuf)
         throws IOException
Throws:
IOException

Apigen