intarsys PDF library API

de.intarsys.pdf.content
Class CSInterpreter

java.lang.Object
  extended by de.intarsys.pdf.content.CSInterpreter
All Implemented Interfaces:
ICSInterpreter
Direct Known Subclasses:
CSDeviceBasedInterpreter

public abstract class CSInterpreter
extends Object
implements ICSInterpreter

An abstrct superclass for implementing an interpreter for PDF content streams.


Constructor Summary
CSInterpreter(Map paramOptions)
           
 
Method Summary
 ICSExceptionHandler getExceptionHandler()
          The currently active ICSExceptionHandler for the interpreter.
 Map getOptions()
          Transparent options used by the interpreter implementation.
 void process(CSContent pContent, PDResources pResources)
          Process content using resources if needed.
 void setExceptionHandler(ICSExceptionHandler errorHandler)
          Assign the ICSExceptionHandler for the interpreter.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CSInterpreter

public CSInterpreter(Map paramOptions)
Method Detail

getExceptionHandler

public ICSExceptionHandler getExceptionHandler()
Description copied from interface: ICSInterpreter
The currently active ICSExceptionHandler for the interpreter.

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

Specified by:
getExceptionHandler in interface ICSInterpreter
Returns:
The currently active ICSExceptionHandler for the interpreter.

getOptions

public Map getOptions()
Description copied from interface: ICSInterpreter
Transparent options used by the interpreter implementation. The method may return null.

Specified by:
getOptions in interface ICSInterpreter
Returns:
Transparent options used by the interpreter implementation.

process

public void process(CSContent pContent,
                    PDResources pResources)
             throws CSException
Description copied from interface: ICSInterpreter
Process content using resources if needed.

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

Specified by:
process in interface ICSInterpreter
Parameters:
pContent - The PDF content stream to be interpreted.
pResources - The PDResources repository for the content stream
Throws:
CSException

setExceptionHandler

public void setExceptionHandler(ICSExceptionHandler errorHandler)
Description copied from interface: ICSInterpreter
Assign the ICSExceptionHandler for the interpreter.

Specified by:
setExceptionHandler in interface ICSInterpreter
Parameters:
errorHandler - The new ICSExceptionHandler.

intarsys PDF library API

Copyright © 2006 intarsys consulting GmbH. All Rights Reserved.