Top Description Fields Constructors Methods
org.apache.tools.ant.filters

public Class UniqFilter

extends ChainableReaderFilter
Class Inheritance

Like the Unix uniq(1) command, only returns tokens that are different from their ancestor token.

This filter is probably most useful if used together with a sortfilter.

Since
Ant 1.8.0

Field Summary

Modifier and TypeField and Description
private String

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public String
filter(String
the string to filter
string
)

Implements org.apache.tools.ant.filters.TokenFilter.Filter.filter.

filter and/of modify a string
Inherited from org.apache.tools.ant.filters.TokenFilter.ChainableReaderFilter:
chainsetByLine

Field Detail

lastLineback to summary
private String lastLine

Constructor Detail

UniqFilterback to summary
public UniqFilter()

Method Detail

filterback to summary
public String filter(String string)

Implements org.apache.tools.ant.filters.TokenFilter.Filter.filter.

Doc from org.apache.tools.ant.filters.TokenFilter.Filter.filter.

filter and/of modify a string

Parameters
string:String

the string to filter

Returns:String

the modified string or null if the string did not pass the filter