intarsys PDF library API

de.intarsys.pdf.content
Interface ICSInterpreter

All Known Implementing Classes:
CSDeviceBasedInterpreter, CSInterpreter

public interface ICSInterpreter

An interpreter for CSContent PDF graphics streams. Indirect references are resolved using resources. resources may be null if not needed.


Method Summary
 ICSExceptionHandler getExceptionHandler()
          The currently active ICSExceptionHandler for the interpreter.
 Map getOptions()
          Transparent options used by the interpreter implementation.
 void process(CSContent content, PDResources resources)
          Process content using resources if needed.
 void setExceptionHandler(ICSExceptionHandler errorHandler)
          Assign the ICSExceptionHandler for the interpreter.
 

Method Detail

process

void process(CSContent content,
             PDResources resources)
Process content using resources if needed.

This method may be called reentrant when a form XObject is encountered.

Parameters:
content - The PDF content stream to be interpreted.
resources - The PDResources repository for the content stream

getOptions

Map getOptions()
Transparent options used by the interpreter implementation. The method may return null.

Returns:
Transparent options used by the interpreter implementation.

getExceptionHandler

ICSExceptionHandler getExceptionHandler()
The currently active ICSExceptionHandler for the interpreter.

The ICSExceptionHandler is responsible for acting on the CSException instances thrwoed while processing a CSContent.

Returns:
The currently active ICSExceptionHandler for the interpreter.

setExceptionHandler

void setExceptionHandler(ICSExceptionHandler errorHandler)
Assign the ICSExceptionHandler for the interpreter.

Parameters:
errorHandler - The new ICSExceptionHandler.

intarsys PDF library API

Copyright © 2006 intarsys consulting GmbH. All Rights Reserved.