jPod PDF library

de.intarsys.pdf.content
Interface ICSDeviceFeatures

All Known Implementing Classes:
CSBasicDevice, CSBoundingBoxCollector, CSCharacterParser, CSCreator, CSDeviceAdapter, CSDeviceFilter, CSImageFilter, CSPathFilter, CSTextDevice, CSTextExtractor, CSTextFilter, CSTextSearcher, CSVirtualDevice, DefaultAppearance.DefaultAppearanceDevice

public interface ICSDeviceFeatures

The CSDeviceBasedInterpreter may do some unnecessary work when interfacing to an ICSDevice, for example when he realizes images where the device finally only handles shapes or text.

This optional interface can signal to the interpreter that it is not interested in some of the arguments in the ICSDevice callback. Only the arguments are replaced with null, the callback itself is performed to support lightweight implementations that for example only rely on the object name.

This declarative interface is designed to fine tune the CSDeviceBasedInterpreter where either a PDF object lookup or other complex object construction is involved. Where this tuning is not enough you may be better off subclassing CSInterpreter directly.


Method Summary
 boolean supportsColorSpace()
          true if this device supports (needs) PDColorSpace objects to be reported in its callbacks.
 boolean supportsExtendedState()
          true if this device supports (needs) PDExtGState objects to be reported in its callbacks.
 boolean supportsFont()
          true if this device supports (needs) PDFont objects to be reported in its callbacks.
 boolean supportsInlineImage()
          true if this device supports (needs) PDImage objects to be reported in its "inlineImage" callbacks.
 boolean supportsPattern()
          true if this device supports (needs) PDPattern objects to be reported in its callbacks.
 boolean supportsProperties()
          true if this device supports (needs) properties to be reported in its callbacks.
 boolean supportsShading()
          true if this device supports (needs) PDShading objects to be reported in its callbacks.
 boolean supportsXObject()
          true if this device supports (needs) PDXObject objects to be reported in its callbacks.
 

Method Detail

supportsColorSpace

boolean supportsColorSpace()
true if this device supports (needs) PDColorSpace objects to be reported in its callbacks.

Returns:
true if this device supports (needs) PDColorSpace objects to be reported in its callbacks.

supportsExtendedState

boolean supportsExtendedState()
true if this device supports (needs) PDExtGState objects to be reported in its callbacks.

Returns:
true if this device supports (needs) PDExtGState objects to be reported in its callbacks.

supportsFont

boolean supportsFont()
true if this device supports (needs) PDFont objects to be reported in its callbacks.

Returns:
true if this device supports (needs) PDFont objects to be reported in its callbacks.

supportsInlineImage

boolean supportsInlineImage()
true if this device supports (needs) PDImage objects to be reported in its "inlineImage" callbacks.

Returns:
true if this device supports (needs) PDImage objects to be reported in its callbacks.

supportsPattern

boolean supportsPattern()
true if this device supports (needs) PDPattern objects to be reported in its callbacks.

Returns:
true if this device supports (needs) PDPattern objects to be reported in its callbacks.

supportsProperties

boolean supportsProperties()
true if this device supports (needs) properties to be reported in its callbacks.

Returns:
true if this device supports (needs) properties to be reported in its callbacks.

supportsShading

boolean supportsShading()
true if this device supports (needs) PDShading objects to be reported in its callbacks.

Returns:
true if this device supports (needs) PDShading objects to be reported in its callbacks.

supportsXObject

boolean supportsXObject()
true if this device supports (needs) PDXObject objects to be reported in its callbacks.

Returns:
true if this device supports (needs) PDXObject objects to be reported in its callbacks.

jPod PDF library

Copyright © 2008 intarsys consulting GmbH. All Rights Reserved.