public abstract class AbstractComponent extends Object implements Component
| Modifier and Type | Field and Description |
|---|---|
protected Class<?>[] |
supportedDocumentClasses
Classes of Document supported by the converter.
|
| Constructor and Description |
|---|
AbstractComponent() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
assertDeviceSupported(String deviceName)
Asserts a given device is supported by the current Ghostscript version.
|
protected void |
assertDocumentSupported(Document document)
Assert a given document instance is supported by the converter
|
void |
copySettings(Map<String,Object> settings)
Copy settings (object properties except for property 'maxProcessCount')
to the current component
|
Map<String,Object> |
extractSettings()
Extract settings (object properties except for property
'maxProcessCount') of the current component
|
protected boolean |
isDeviceSupported(String deviceName)
Checks if a given device is supported by the current Ghostscript version.
|
protected Class<?>[] supportedDocumentClasses
protected void assertDocumentSupported(Document document) throws DocumentException
document - DocumentException - When document is not supportedpublic void copySettings(Map<String,Object> settings) throws IllegalAccessException, InvocationTargetException
ComponentcopySettings in interface ComponentIllegalAccessExceptionInvocationTargetExceptionpublic Map<String,Object> extractSettings() throws IllegalAccessException, InvocationTargetException, NoSuchMethodException
ComponentextractSettings in interface ComponentIllegalAccessExceptionInvocationTargetExceptionNoSuchMethodExceptionprotected boolean isDeviceSupported(String deviceName) throws GhostscriptException
deviceName - Device nameGhostscriptExceptionprotected void assertDeviceSupported(String deviceName) throws GhostscriptException
deviceName - Device nameGhostscriptException - Thrown is device is not supported, or call to the interpreter
failsCopyright © 2016. All Rights Reserved.