public class JPEGTranscoder extends ImageTranscoder
ImageTranscoder.ImageInfoscaleGridBottom, scaleGridLeft, scaleGridRight, scaleGridTop, scalingbaseClassQName, byteArrayNamePostfix, CORE_PACKAGE, data, source, swcSource, UTILS_PACKAGE, workspace| Constructor and Description |
|---|
JPEGTranscoder(EmbedData data,
Workspace workspace) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
analyze(ISourceLocation location,
Collection<ICompilerProblem> problems)
Analyze the attributes
|
protected boolean |
checkAttributeValues(ISourceLocation location,
Collection<ICompilerProblem> problems)
Verify the attributes are valid for the specific transcoder
|
static byte[] |
deflate(byte[] buf) |
protected Map<String,ICharacterTag> |
doTranscode(Collection<ITag> tags,
Collection<ICompilerProblem> problems)
Transcode the embedded asset
|
boolean |
equals(Object o) |
int |
hashCode() |
protected boolean |
setAttribute(EmbedAttribute attribute)
Stores the supported attribute of the transcoder
|
getImageInfobuildScalingGrid, buildSpritebuildABC, buildAST, buildBinaryDataTag, getBaseClassName, getBaseClassQName, getDataBytes, getDataStream, getTagspublic boolean analyze(ISourceLocation location, Collection<ICompilerProblem> problems)
TranscoderBaseanalyze in class ImageTranscoderlocation - Source location from where the embed came fromproblems - Any problems discovered in the EmbedNodeprotected boolean checkAttributeValues(ISourceLocation location, Collection<ICompilerProblem> problems)
TranscoderBasecheckAttributeValues in class ScalableTranscoderprotected boolean setAttribute(EmbedAttribute attribute)
TranscoderBasesetAttribute in class ImageTranscoderprotected Map<String,ICharacterTag> doTranscode(Collection<ITag> tags, Collection<ICompilerProblem> problems)
TranscoderBasedoTranscode in class ImageTranscodertags - The collection of transcoded asset tagsproblems - The collection of compiler problems to which this method will add problems.public static byte[] deflate(byte[] buf)
throws IOException
IOExceptionpublic boolean equals(Object o)
equals in class ImageTranscoderpublic int hashCode()
hashCode in class ImageTranscoderCopyright © 2016 The Apache Software Foundation. All rights reserved.