OutputFilename
Describe how output filenames should be constructed.
This method returns a sequence of filenames from a pattern. Within the pattern, a percent sign (%) followed by zero or more digits, followed by a latin small letter o (o), a latin small letter d (d), a latin small letter x (x), or a latin capital letter x (X) will be replaced with a sequence number. Files are numbered from 1.
If the trailing letter is "o", the number will be formatted in octal, if the trailing digit is "d", the number will be formatted in decimal, if the trailing letter is "x" or "X", the number will be formatted in hexadecimal with either lower- or upper-case alphabetic digits.
If one or more leading digits are provided, the number will be padded to that length.
If "%%" appears in the pattern, it will be replaced by a single "%" in the generated filename.
In other words the pattern hello%%world%03x.xml
will produce a sequence of filenames: hello%world001.xml
, hello%world002.xml
, ... hello%worldfff.xml
, hello%world1000.xml
, etc.
The result of performing the sequential substutition on the pattern string must result in a valid filename for the platform where the process is running.
Parameters
the pattern string.