|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.io.Reader
com.starteam.util.LineProcessor
com.starteam.File.KeywordReader
public static final class File.KeywordReader
Extends the java.io.Reader class to expand or unexpand keywords in a file or other data source. It is typically unnecessary for client applications to explicitly (un)expand keywords
| Constructor Summary | |
|---|---|
File.KeywordReader(LineReader source,
File.Keyword[] keywords,
boolean expand)
Constructs a KeywordReader than can expand or unexpand the keywords in a file or other data source. |
|
File.KeywordReader(LineReader source,
File.Keyword[] keywords,
boolean expand,
Encoding encoding)
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. |
java.io.Reader |
processLine(java.lang.String line,
int eol)
Returns a Reader that processes or translates the provided source line. |
void |
setAppend(boolean append)
explicitly determine whether or not to append the keyword text to the stream Set this to true only when content is being uploaded to the server or keywords are being expanded back to disk after an add or checkin |
void |
setEncoding(Encoding encoding)
Set the encoding to use when expanding keywords |
| Methods inherited from class com.starteam.util.LineProcessor |
|---|
close, read |
| Methods inherited from class java.io.Reader |
|---|
mark, markSupported, read, read, read, ready, reset, skip |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public File.KeywordReader(LineReader source,
File.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 File.KeywordReader(LineReader source,
File.Keyword[] keywords,
boolean expand,
Encoding encoding)
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.encoding - the encoding to use during expansion
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 LineReaderFile.EOLFormatpublic void setEncoding(Encoding encoding)
encoding - the encoding to usepublic void setAppend(boolean append)
append - boolean
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||