public class SizeReportWritingSWFWriter extends SWFWriter
DEFAULT_SWF_WRITER_FACTORY, outputBuffer, tagBuffer
Constructor and Description |
---|
SizeReportWritingSWFWriter(ISWF swf,
Header.Compression useCompression,
boolean enableDebug,
boolean enableTelemetry,
File sizeReport)
Create a SWF writer with a size reporter.
|
Modifier and Type | Method and Description |
---|---|
protected void |
finishTag(ITag tag,
org.apache.flex.swf.io.IOutputBitStream tagData,
org.apache.flex.swf.io.IOutputBitStream out)
Compute the tag length for the tag header, then write the header and the
buffered tag body to target output stream.
|
static ISWFWriterFactory |
getSWFWriterFactory(File sizeReport)
Get a SWF Writer factory that can create an instance of a class that can
write a SWF with the optional capability of creating a size report.
|
void |
reportDoABC(DoABCTag tag,
int recordLength) |
void |
reportFileAttributes(FileAttributesTag tag,
int recordLength) |
protected void |
writeCompressibleHeader() |
protected void |
writeDefineSprite(DefineSpriteTag tag) |
int |
writeTo(File outputFile)
Start writing to a file.
|
void |
writeTo(OutputStream output)
This method does not close the
output stream. |
close, maxNum, maxNum, requireFBCount, requireSBCount, requireSBCount, requireUBCount, writeARGB, writeDoABC, writeFileAttributes, writeRect, writeRGB, writeRGBA
public SizeReportWritingSWFWriter(ISWF swf, Header.Compression useCompression, boolean enableDebug, boolean enableTelemetry, File sizeReport)
swf
- the SWF model to be encodeduseCompression
- use ZLIB compression if trueenableDebug
- enable debugging of the SWF if truesizeReport
- the file the size report is written to.public static ISWFWriterFactory getSWFWriterFactory(File sizeReport)
sizeReport
- if non-null, return a factory for an object that can
create a size report in addition to a writing a SWF. Otherwise the
factory is for an object that just writes a SWF.public int writeTo(File outputFile) throws FileNotFoundException, IOException
ISWFWriter
writeTo
in interface ISWFWriter
writeTo
in class SWFWriter
outputFile
- The output File
.FileNotFoundException
IOException
public void writeTo(OutputStream output)
SWFWriter
output
stream.writeTo
in interface ISWFWriter
writeTo
in class SWFWriter
output
- output streamprotected void finishTag(ITag tag, org.apache.flex.swf.io.IOutputBitStream tagData, org.apache.flex.swf.io.IOutputBitStream out)
SWFWriter
protected void writeCompressibleHeader()
writeCompressibleHeader
in class SWFWriter
protected void writeDefineSprite(DefineSpriteTag tag)
writeDefineSprite
in class SWFWriter
SWFReader.readDefineSprite()
public void reportDoABC(DoABCTag tag, int recordLength)
public void reportFileAttributes(FileAttributesTag tag, int recordLength)
Copyright © 2016 The Apache Software Foundation. All rights reserved.