Package org.apache.tools.ant.types
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 TypeMethodDescriptionEncoding to use when reading the file, defaults to the platform's default encoding.voidsetEncoding(String encoding)Encoding to use when reading the file, defaults to the platform's default encoding.toString()
-
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.
-