|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.alfresco.repo.content.transform.AbstractContentTransformer2
org.alfresco.repo.content.transform.OpenOfficeContentTransformer
public class OpenOfficeContentTransformer
Makes use of the JOOConverter library to
perform OpenOffice-drive conversions.
| Constructor Summary | |
|---|---|
OpenOfficeContentTransformer()
|
|
| Method Summary | |
|---|---|
boolean |
isConnected()
|
boolean |
isTransformable(java.lang.String sourceMimetype,
java.lang.String targetMimetype,
TransformationOptions options)
Indicates whether the provided source mimetype can be transformed into the target mimetype with the options specified by this content transformer. |
void |
register()
Registers this instance with the registry
if it is present. |
void |
setConnection(net.sf.jooreports.openoffice.connection.OpenOfficeConnection connection)
|
void |
setConverter(net.sf.jooreports.openoffice.converter.AbstractOpenOfficeDocumentConverter converter)
Explicitly set the converter to be used. |
void |
setDocumentFormatsConfiguration(java.lang.String path)
Set a non-default location from which to load the document format mappings. |
protected void |
transformInternal(ContentReader reader,
ContentWriter writer,
TransformationOptions options)
Method to be implemented by subclasses wishing to make use of the common infrastructural code provided by this class. |
| Methods inherited from class org.alfresco.repo.content.transform.AbstractContentTransformer2 |
|---|
checkTransformable, getMimetype, getMimetypeService, getTransformationTime, isExplicitTransformation, recordTime, setExplicitTransformations, setMimetypeService, setRegistry, toString, transform, transform, transform |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public OpenOfficeContentTransformer()
| Method Detail |
|---|
public void setConnection(net.sf.jooreports.openoffice.connection.OpenOfficeConnection connection)
connection - the connection that the converter usespublic void setConverter(net.sf.jooreports.openoffice.converter.AbstractOpenOfficeDocumentConverter converter)
OpenOfficeContentTransformer.setConnection(OpenOfficeConnection).
If not set, then the OpenOfficeDocumentConverter will be used.
converter - the converter to use.public void setDocumentFormatsConfiguration(java.lang.String path)
path - a resource location supporting the file: or classpath: prefixespublic boolean isConnected()
public void register()
AbstractContentTransformer2registry
if it is present.
register in class AbstractContentTransformer2
public boolean isTransformable(java.lang.String sourceMimetype,
java.lang.String targetMimetype,
TransformationOptions options)
ContentTransformer
sourceMimetype - the source mimetypeoptions - the transformation options
DocumentFormatRegistry
protected void transformInternal(ContentReader reader,
ContentWriter writer,
TransformationOptions options)
throws java.lang.Exception
AbstractContentTransformer2
transformInternal in class AbstractContentTransformer2reader - the source of the content to transformwriter - the target to which to write the transformed contentoptions - a map of options to use when performing the transformation. The map
will never be null.
java.lang.Exception - exceptions will be handled by this class - subclasses can throw anything
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||