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

public Class Native2AsciiFilter

extends ChainableReaderFilter
Class Inheritance
Imports
org.apache.tools.ant.util.Native2AsciiUtils

A filter that performs translations from characters to their Unicode-escape sequences and vice-versa.
Since
Ant 1.9.8

Field Summary

Modifier and TypeField and Description
private boolean

Constructor Summary

AccessConstructor and Description
public

Method Summary

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

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

filter and/of modify a string
public void
setReverse(boolean
True if the conversion is to be reversed, otherwise false;
reverse
)

Flag the conversion to run in the reverse sense, that is Ascii to Native encoding.

Inherited from org.apache.tools.ant.filters.TokenFilter.ChainableReaderFilter:
chainsetByLine

Field Detail

reverseback to summary
private boolean reverse

Constructor Detail

Native2AsciiFilterback to summary
public Native2AsciiFilter()

Method Detail

filterback to summary
public String filter(String line)

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
line:String

the string to filter

Returns:String

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

Annotations
@Override
setReverseback to summary
public void setReverse(boolean reverse)

Flag the conversion to run in the reverse sense, that is Ascii to Native encoding.

Parameters
reverse:boolean

True if the conversion is to be reversed, otherwise false;