| org.apache.tools.ant.filters.BaseFilterReader org.apache.tools.ant.filters.BaseParamFilterReader org.apache.tools.ant.filters.TabsToSpaces
TabsToSpaces | final public class TabsToSpaces extends BaseParamFilterReader implements ChainableReader(Code) | | Converts tabs to spaces.
Example:
<tabtospaces tablength="8"/>
Or:
<filterreader classname="org.apache.tools.ant.filters.TabsToSpaces">
<param name="tablength" value="8"/>
</filterreader>
|
Method Summary | |
public Reader | chain(Reader rdr) Creates a new TabsToSpaces 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, converting tabs
to the specified number of spaces. | public void | setTablength(int tabLength) Sets the tab length. |
TabsToSpaces | public TabsToSpaces(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 TabsToSpaces 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, converting tabs
to the specified number of spaces.
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 |
setTablength | public void setTablength(int tabLength)(Code) | | Sets the tab length.
Parameters: tabLength - the number of spaces to be used when converting a tab. |
|
|