|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--java.io.Reader
|
+--com.starbase.util.LineProcessor
|
+--com.starbase.starteam.KeywordReader
A class that extends the java.io.Reader class that can expand or unexpand keywords in a file or other data source.
| Constructor Summary | |
KeywordReader(LineReader source,
Keyword[] keywords,
boolean expand)
Constructs a KeywordReader than can expand or unexpand the keywords in a file or other data source. |
|
KeywordReader(LineReader source,
Keyword[] keywords,
boolean expand,
java.lang.String sEncoding)
Constructs a KeywordReader than can expand or unexpand the keywords in a file or other data source. |
|
| Method Summary | |
java.io.Reader |
endofInput()
This is called when the end of the source input has been reached. |
boolean |
equals(java.lang.Object source)
returns true if this object instance is equal to the source |
int |
hashCode()
returns a unique hash for all instances of this type |
java.io.Reader |
processLine(java.lang.String line,
int eol)
Returns a Reader that processes or translates the provided source line. |
void |
setEncoding(java.lang.String sEncoding)
|
| Methods inherited from class com.starbase.util.LineProcessor |
close, read |
| Methods inherited from class java.io.Reader |
mark, markSupported, read, read, ready, reset, skip |
| Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public KeywordReader(LineReader source,
Keyword[] keywords,
boolean expand)
throws java.io.IOException
source - the source contents to be expanded or unexpanded. This
is typically a file.keywords - the keyword objects to use for expansion/unexpansion.expand - if true will expand, if false, unexpand.
java.io.IOException - if any error occur accessing the source
public KeywordReader(LineReader source,
Keyword[] keywords,
boolean expand,
java.lang.String sEncoding)
throws java.io.IOException
source - the source contents to be expanded or unexpanded. This
is typically a file.keywords - the keyword objects to use for expansion/unexpansion.expand - if true will expand, if false, unexpand.
java.io.IOException - if any error occur accessing the source| Method Detail |
public java.io.Reader endofInput()
throws java.io.IOException
endofInput in class LineProcessorjava.io.IOException - if there were any errors accessing the
source reader.
public java.io.Reader processLine(java.lang.String line,
int eol)
throws java.io.IOException
processLine in class LineProcessorline - the source line to be processeseol - the end-of-line type
java.io.IOException - if anny error occur accessing the source
LineReaderLineReader.EOL_UNKNOWN,
LineReader.EOL_CR,
LineReader.EOL_LF,
LineReader.EOL_CRLF,
LineReader.EOL_EOFpublic void setEncoding(java.lang.String sEncoding)
public boolean equals(java.lang.Object source)
equals in class LineProcessorsource - Object the source to comapre with
public int hashCode()
hashCode in class LineProcessor
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||