public class ContentTransform extends OutputStream
| Modifier and Type | Field and Description |
|---|---|
protected Map<String,String> |
config |
protected String |
contentType |
protected Metadata |
metadata |
| Constructor and Description |
|---|
ContentTransform(Map<String,String> config,
Metadata metadata,
String contentType,
OutputStream originalStream)
Constructs a document content transform.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
flush() |
static String |
getContentTypeOutputForContentTypeInput(String ctIn)
Specify the transformation in ContentType, where applicable.
|
String |
toString() |
void |
write(byte[] b) |
void |
write(byte[] b,
int off,
int len) |
void |
write(int b) |
protected final Metadata metadata
protected final String contentType
public ContentTransform(Map<String,String> config, Metadata metadata, String contentType, OutputStream originalStream)
config - the configuration for this instancemetadata - the unchangeable metadatacontentType - the input content-typeoriginalStream - the original stream to put the final content inpublic void write(int b)
throws IOException
write in class OutputStreamIOExceptionpublic void write(byte[] b)
throws IOException
write in class OutputStreamIOExceptionpublic void write(byte[] b,
int off,
int len)
throws IOException
write in class OutputStreamIOExceptionpublic void flush()
throws IOException
flush in interface Flushableflush in class OutputStreamIOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class OutputStreamIOExceptionpublic static String getContentTypeOutputForContentTypeInput(String ctIn)
ctIn - input ContentType of the Transformation step.ContentType of the Transformation step.