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 ContentProcessor
IOException
protected GenerationContext getGenerationContext()
protected String getFileEncoding()
DEFAULT_ENCODING
public final void finish() throws IOException
finish
in interface ContentProcessor
IOException
public void cleanUp()
cleanUp
in interface ContentProcessor
public Writer getWriter()
getWriter
in interface ContentProcessor
public boolean needsPrivilegedAccessToMediafiles()
false
.needsPrivilegedAccessToMediafiles
in interface ContentProcessor
protected abstract void process(InputStream in, OutputStream out) throws IOException
IOException
Copyright © 2014 e-Spirit AG. All Rights Reserved. Build 5.0_BETA.500