public class TransformerUtils extends Object
| Constructor and Description |
|---|
TransformerUtils() |
| Modifier and Type | Method and Description |
|---|---|
static void |
transformAndStreamResource(com.atlassian.plugin.servlet.DownloadableResource originalResource,
Charset encoding,
OutputStream out,
com.google.common.base.Function<CharSequence,CharSequence> transform)
Write apply a given transform a resource and then write the transformed content
to the supplied OutputStream.
|
public static final Charset UTF8
public static void transformAndStreamResource(com.atlassian.plugin.servlet.DownloadableResource originalResource,
Charset encoding,
OutputStream out,
com.google.common.base.Function<CharSequence,CharSequence> transform)
throws com.atlassian.plugin.servlet.DownloadException
originalResource - - the resource to transformencoding - - the encoding to use for writingout - - the output streamtransform - - a function for transforming the contentcom.atlassian.plugin.servlet.DownloadException - - thrown if it is not possible to stream the outputCopyright © 2017 Atlassian. All rights reserved.