<striplinebreaks/>Or:
<filterreader classname="org.apache.tools.ant.filters.StripLineBreaks"/>
| Modifier and Type | Field and Description |
|---|---|
| private static final String | DEFAULT_LINE_BREAKS
Line-breaking characters. |
| private static final String | LINE_BREAKS_KEY
Parameter name for the line-breaking characters parameter. |
| private String | lineBreaks
The characters that are recognized as line breaks. |
| Access | Constructor and Description |
|---|---|
| public | |
| public | StripLineBreaks(final Reader
A Reader object providing the underlying stream.
Must not be in)null.Creates a new filtered reader. |
| Modifier and Type | Method and Description |
|---|---|
| public Reader | Returns: a new filter based on this configuration, but filtering the specified readerA Reader object providing the underlying stream.
Must not be rdr)null.Implements org. |
| private String | Returns: a String containing all the characters considered as line-breakingReturns the line-breaking characters as a String. |
| private void | |
| public int | Returns: the next character in the resulting stream, or -1 if the end of the resulting stream has been reachedOverrides java. |
| public void | setLineBreaks(final String
A String containing all the characters to be
considered as line-breaking. lineBreaks)Sets the line-breaking characters. |
| DEFAULT_LINE_BREAKS | back to summary |
|---|---|
| private static final String DEFAULT_LINE_BREAKS Line-breaking characters. What should we do on funny IBM mainframes with odd line endings? | |
| LINE_BREAKS_KEY | back to summary |
|---|---|
| private static final String LINE_BREAKS_KEY Parameter name for the line-breaking characters parameter. | |
| lineBreaks | back to summary |
|---|---|
| private String lineBreaks The characters that are recognized as line breaks. | |
| StripLineBreaks | back to summary |
|---|---|
| public StripLineBreaks() Constructor for "dummy" instances.
| |
| StripLineBreaks | back to summary |
|---|---|
| public StripLineBreaks(final Reader in) Creates a new filtered reader.
| |
| chain | back to summary |
|---|---|
| public Reader chain(final Reader rdr) Implements org. Creates a new StripLineBreaks using the passed in Reader for instantiation. | |
| getLineBreaks | back to summary |
|---|---|
| private String getLineBreaks() Returns the line-breaking characters as a String.
| |
| initialize | back to summary |
|---|---|
| private void initialize() Parses the parameters to set the line-breaking characters. | |
| read | back to summary |
|---|---|
| public int read() throws IOException Overrides java. Returns the next character in the filtered stream, only including characters not in the set of line-breaking characters.
| |
| setLineBreaks | back to summary |
|---|---|
| public void setLineBreaks(final String lineBreaks) Sets the line-breaking characters.
| |