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

    public class PatternSet.PatternFileNameEntry
    extends PatternSet.NameEntry

Adds encoding support to `PatternSet.NameEntry`.

Since:
  Ant 1.10.4

### Constructor Summary

Constructors
`PatternFileNameEntry()`

### Method Summary

All Methods Instance Methods Concrete Methods
`java.lang.String` `getEncoding()` Encoding to use when reading the file, defaults to the platform's default encoding.
`void` `setEncoding​(java.lang.String encoding)` Encoding to use when reading the file, defaults to the platform's default encoding.
`java.lang.String` `toString()`

### Methods inherited from class org.apache.tools.ant.types.PatternSet.NameEntry

`evalName, getName, setIf, setIf, setName, setUnless, setUnless`

### Methods inherited from class java.lang.Object

`clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

### Constructor Detail

#### PatternFileNameEntry

    public PatternFileNameEntry()

### Method Detail

#### setEncoding

    public final void setEncoding​(java.lang.String encoding)

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

    public final java.lang.String getEncoding()

Encoding to use when reading the file, defaults to the platform's default encoding.

Returns:
  the encoding name

#### toString

    public java.lang.String toString()

Overrides:
  `toString` in class `PatternSet.NameEntry`
Returns:
  a printable form of this object.