|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--java.io.Reader
|
+--com.stevesoft.pat.RegexReader
This class allows you to replace the text in strings as you read them in. Be careful what you do with this freedom... using Regex.perlCode("s{.*}{x}s") as your pattern will result in loading the entire contents of the Reader into memory.
| Fields inherited from class java.io.Reader |
lock |
| Constructor Summary | |
RegexReader(Regex rex,
java.io.Reader r)
|
|
RegexReader(Transformer tex,
java.io.Reader r)
|
|
| Method Summary | |
void |
close()
|
int |
getBufferSize()
Get the size of the working buffer. |
char |
getEOLchar()
Deprecated. |
int |
getMaxLines()
Deprecated. |
boolean |
markSupported()
|
int |
read()
|
int |
read(char[] buf,
int off,
int len)
|
void |
reset()
|
void |
setBufferSize(int n)
Set the size of the working buffer. |
void |
setEOLchar(char c)
Deprecated. |
void |
setMaxLines(int ml)
Deprecated. |
long |
skip(long d)
|
| Methods inherited from class java.io.Reader |
mark,
read,
ready |
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
| Constructor Detail |
public RegexReader(Regex rex,
java.io.Reader r)
public RegexReader(Transformer tex,
java.io.Reader r)
| Method Detail |
public void reset()
throws java.io.IOException
public int read()
throws java.io.IOException
public int read(char[] buf,
int off,
int len)
throws java.io.IOException
public void close()
throws java.io.IOException
public boolean markSupported()
public int getBufferSize()
public void setBufferSize(int n)
public int getMaxLines()
public void setMaxLines(int ml)
public char getEOLchar()
public void setEOLchar(char c)
public long skip(long d)
throws java.io.IOException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||