Package org.apache.batik.apps.rasterizer
Class Main.AbstractOptionHandler
- java.lang.Object
-
- org.apache.batik.apps.rasterizer.Main.AbstractOptionHandler
-
- All Implemented Interfaces:
Main.OptionHandler
- Direct Known Subclasses:
Main.NoValueOptionHandler,Main.SingleValueOptionHandler
- Enclosing class:
- Main
public abstract static class Main.AbstractOptionHandler extends java.lang.Object implements Main.OptionHandler
This abstract implementation of theOptionHandlerinterface throws an exception if the number of arguments passed to thehandleOptionmethod does not match the number of expected optionValues. If the size matches, thesafeHandleOptionmethod is invoked. Subclasses can implement thesafeHandleOptionmethod assuming that the input array size is correct.
-
-
Constructor Summary
Constructors Constructor Description AbstractOptionHandler()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voidhandleOption(java.lang.String[] optionValues, SVGConverter c)TheOptionHandlershould configure theSVGConverteraccording to the value of the option.abstract voidsafeHandleOption(java.lang.String[] optionValues, SVGConverter c)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.batik.apps.rasterizer.Main.OptionHandler
getOptionDescription, getOptionValuesLength
-
-
-
-
Method Detail
-
handleOption
public void handleOption(java.lang.String[] optionValues, SVGConverter c)Description copied from interface:Main.OptionHandlerTheOptionHandlershould configure theSVGConverteraccording to the value of the option. Should throw an IllegalArgumentException if optionValue is not an acceptable option.- Specified by:
handleOptionin interfaceMain.OptionHandler
-
safeHandleOption
public abstract void safeHandleOption(java.lang.String[] optionValues, SVGConverter c)
-
-