public abstract static class Main.AbstractOptionHandler extends Object implements Main.OptionHandler
OptionHandler interface
throws an exception if the number of arguments passed to the
handleOption method does not match the number of expected
optionValues. If the size matches, the safeHandleOption
method is invoked.
Subclasses can implement the safeHandleOption method
assuming that the input array size is correct.| Constructor and Description |
|---|
AbstractOptionHandler() |
| Modifier and Type | Method and Description |
|---|---|
void |
handleOption(String[] optionValues,
SVGConverter c)
The
OptionHandler should configure the SVGConverter
according to the value of the option. |
abstract void |
safeHandleOption(String[] optionValues,
SVGConverter c) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetOptionDescription, getOptionValuesLengthpublic void handleOption(String[] optionValues, SVGConverter c)
Main.OptionHandlerOptionHandler should configure the SVGConverter
according to the value of the option.
Should throw an IllegalArgumentException if optionValue
is not an acceptable option.handleOption in interface Main.OptionHandlerpublic abstract void safeHandleOption(String[] optionValues, SVGConverter c)
Copyright © 2000–2017 Apache Software Foundation. All rights reserved.