jaxg 0.1dev

org.xml.graphics
Class XGResult

java.lang.Object
  extended by org.xml.graphics.XGResult
Direct Known Subclasses:
StreamXGResult

public abstract class XGResult
extends java.lang.Object

This class represents the output to be generated by an FO processor implementation.

You can set output properties to customize the output. For example, you can set document metadata (title, author etc.) or you can customize PDF security.

Here's an example which sets document metadata:

 XGResult fopres = new StreamXGResult("application/pdf", "C:/Temp/out.pdf");
 DocumentMetadata metadata = new DocumentMetadata();
 metadata.setTitle("My test document");
 fopres.setOutputProperty(DocumentMetadata.KEY, metadata);
 

Author:
Jeremias Maerki

Constructor Summary
XGResult()
           
 
Method Summary
 java.util.Properties getOutputProperties()
           
 java.lang.Object getOutputProperty(java.lang.String key)
           
 java.lang.Object getOutputProperty(java.lang.String key, java.lang.Class expectedClass)
           
 void setOutputProperties(java.util.Properties props)
           
 void setOutputProperty(java.lang.String key, java.lang.Object value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XGResult

public XGResult()
Method Detail

setOutputProperty

public void setOutputProperty(java.lang.String key,
                              java.lang.Object value)

getOutputProperty

public java.lang.Object getOutputProperty(java.lang.String key,
                                          java.lang.Class expectedClass)

getOutputProperty

public java.lang.Object getOutputProperty(java.lang.String key)

setOutputProperties

public void setOutputProperties(java.util.Properties props)

getOutputProperties

public java.util.Properties getOutputProperties()

jaxg 0.1dev

Copyright © 2004-2005 Jeremias Märki. All rights reserved.