public abstract class AbstractContentProcessor extends Object implements ContentProcessor
| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_ENCODING |
| Constructor and Description |
|---|
AbstractContentProcessor() |
| Modifier and Type | Method and Description |
|---|---|
void |
cleanUp() |
void |
finish() |
protected String |
getFileEncoding()
Returns
DEFAULT_ENCODING |
protected GenerationContext |
getGenerationContext() |
Writer |
getWriter() |
void |
init(GenerationContext gc,
OutputStream out) |
boolean |
needsPrivilegedAccessToMediafiles()
Returns
false. |
protected abstract void |
process(InputStream in,
OutputStream out) |
public static final String DEFAULT_ENCODING
public void init(GenerationContext gc, OutputStream out) throws IOException
init in interface ContentProcessorIOExceptionprotected GenerationContext getGenerationContext()
protected String getFileEncoding()
DEFAULT_ENCODINGpublic final void finish()
throws IOException
finish in interface ContentProcessorIOExceptionpublic void cleanUp()
cleanUp in interface ContentProcessorpublic Writer getWriter()
getWriter in interface ContentProcessorpublic boolean needsPrivilegedAccessToMediafiles()
false.needsPrivilegedAccessToMediafiles in interface ContentProcessorprotected abstract void process(InputStream in, OutputStream out) throws IOException
IOExceptionCopyright © 2014 e-Spirit AG. All Rights Reserved. Build 5.0_BETA.500