public class PEFGenerator
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
KEY_COLS
Key used in the settings map passed to the constructor.
|
static java.lang.String |
KEY_DUPLEX
Key used in the settings map passed to the constructor.
|
static java.lang.String |
KEY_EIGHT_DOT
Key used in the settings map passed to the constructor.
|
static java.lang.String |
KEY_PPV
Key used in the settings map passed to the constructor.
|
static java.lang.String |
KEY_ROWS
Key used in the settings map passed to the constructor.
|
static java.lang.String |
KEY_VOLUMES
Key used in the settings map passed to the constructor.
|
Constructor and Description |
---|
PEFGenerator()
Creates a new PEFGenerator with the default settings.
|
PEFGenerator(java.util.Map<java.lang.String,java.lang.String> p)
Creates a new PEF generator with the supplied optional settings.
|
Modifier and Type | Method and Description |
---|---|
void |
generateTestBook(java.io.File output)
Generates a new PEF-file and writes it to the supplied path
|
void |
generateTestPages(java.io.File output)
Generates a PEF-file with a few test pages to check the embosser setup
(the arguments KEY_VOLUMES and KEY_PPV are ignored)
|
static java.lang.String |
getDefaultValue(java.lang.String key)
Gets the default value for a specified key.
|
static java.util.Set<java.lang.String> |
getOptionalArgumentKeys()
Gets a list of all keys which has default values
|
public static java.lang.String KEY_VOLUMES
public static java.lang.String KEY_PPV
public static java.lang.String KEY_EIGHT_DOT
public static java.lang.String KEY_ROWS
public static java.lang.String KEY_COLS
public static java.lang.String KEY_DUPLEX
public PEFGenerator()
public PEFGenerator(java.util.Map<java.lang.String,java.lang.String> p)
p
- a map containing optional settingspublic static java.util.Set<java.lang.String> getOptionalArgumentKeys()
public static java.lang.String getDefaultValue(java.lang.String key)
key
- The key to get the default value forpublic void generateTestBook(java.io.File output) throws java.io.FileNotFoundException
output
- the output filejava.io.FileNotFoundException
- If the given file object does not denote an existing,
writable regular file and a new regular file of that name cannot be created, or if
some other error occurs while opening or creating the filepublic void generateTestPages(java.io.File output) throws java.io.FileNotFoundException, java.lang.Exception
output
- the output filejava.io.FileNotFoundException
- If the given file object does not denote an existing,
writable regular file and a new regular file of that name cannot be created, or if
some other error occurs while opening or creating the filejava.lang.Exception