| org.apache.tools.ant.filters.BaseFilterReader org.apache.tools.ant.filters.BaseParamFilterReader org.apache.tools.ant.filters.StripLineBreaks
StripLineBreaks | final public class StripLineBreaks extends BaseParamFilterReader implements ChainableReader(Code) | | Filter to flatten the stream to a single line.
Example:
<striplinebreaks/>
Or:
<filterreader
classname="org.apache.tools.ant.filters.StripLineBreaks"/>
|
Method Summary | |
public Reader | chain(Reader rdr) Creates a new StripLineBreaks using the passed in
Reader for instantiation.
Parameters: rdr - A Reader object providing the underlying stream.Must not be null . | public int | read() Returns the next character in the filtered stream, only including
characters not in the set of line-breaking characters. | public void | setLineBreaks(String lineBreaks) Sets the line-breaking characters. |
StripLineBreaks | public StripLineBreaks(Reader in)(Code) | | Creates a new filtered reader.
Parameters: in - A Reader object providing the underlying stream.Must not be null . |
chain | public Reader chain(Reader rdr)(Code) | | Creates a new StripLineBreaks using the passed in
Reader for instantiation.
Parameters: rdr - A Reader object providing the underlying stream.Must not be null . a new filter based on this configuration, but filteringthe specified reader |
read | public int read() throws IOException(Code) | | Returns the next character in the filtered stream, only including
characters not in the set of line-breaking characters.
the next character in the resulting stream, or -1if the end of the resulting stream has been reached exception: IOException - if the underlying stream throws an IOExceptionduring reading |
setLineBreaks | public void setLineBreaks(String lineBreaks)(Code) | | Sets the line-breaking characters.
Parameters: lineBreaks - A String containing all the characters to beconsidered as line-breaking. |
|
|