Class PatternSet.PatternFileNameEntry
java.lang.Object
org.apache.tools.ant.types.PatternSet.NameEntry
org.apache.tools.ant.types.PatternSet.PatternFileNameEntry
- Enclosing class:
PatternSet
Adds encoding support to
PatternSet.NameEntry.- Since:
- Ant 1.10.4
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal StringEncoding to use when reading the file, defaults to the platform's default encoding.final voidsetEncoding(String encoding) Encoding to use when reading the file, defaults to the platform's default encoding.toString()Methods inherited from class PatternSet.NameEntry
evalName, getName, setIf, setIf, setName, setUnless, setUnlessModifier and TypeMethodDescriptionThis validates the name - checks the if and unless properties.getName()voidSets the if attribute.voidSets the if attribute.voidSets the name pattern.voidSets the unless attribute.voidSets the unless attribute.
-
Constructor Details
-
PatternFileNameEntry
public PatternFileNameEntry()
-
-
Method Details
-
setEncoding
Encoding to use when reading the file, defaults to the platform's default encoding.For a list of possible values see https://docs.oracle.com/javase/8/docs/technotes/guides/intl/encoding.doc.html.
- Parameters:
encoding- String
-
getEncoding
Encoding to use when reading the file, defaults to the platform's default encoding.- Returns:
- the encoding name
-
toString
- Overrides:
toStringin classPatternSet.NameEntry- Returns:
- a printable form of this object.
-