|
|||||||||
| 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.HtmlParserContentTransformer
public class HtmlParserContentTransformer
http://htmlparser.sourceforge.net/,
StringBean| Constructor Summary | |
|---|---|
HtmlParserContentTransformer()
|
|
| Method Summary | |
|---|---|
boolean |
isTransformable(java.lang.String sourceMimetype,
java.lang.String targetMimetype,
TransformationOptions options)
Only support HTML to TEXT. |
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, register, 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 HtmlParserContentTransformer()
| Method Detail |
|---|
public boolean isTransformable(java.lang.String sourceMimetype,
java.lang.String targetMimetype,
TransformationOptions options)
sourceMimetype - the source mimetypeoptions - the transformation options
public 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 | ||||||||