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  outputstream. | 
close, maxNum, maxNum, requireFBCount, requireSBCount, requireSBCount, requireUBCount, writeARGB, writeDoABC, writeFileAttributes, writeRect, writeRGB, writeRGBApublic 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
ISWFWriterwriteTo in interface ISWFWriterwriteTo in class SWFWriteroutputFile - The output File.FileNotFoundExceptionIOExceptionpublic void writeTo(OutputStream output)
SWFWriteroutput stream.writeTo in interface ISWFWriterwriteTo in class SWFWriteroutput - output streamprotected void finishTag(ITag tag, org.apache.flex.swf.io.IOutputBitStream tagData, org.apache.flex.swf.io.IOutputBitStream out)
SWFWriterprotected void writeCompressibleHeader()
writeCompressibleHeader in class SWFWriterprotected void writeDefineSprite(DefineSpriteTag tag)
writeDefineSprite in class SWFWriterSWFReader.readDefineSprite()public void reportDoABC(DoABCTag tag, int recordLength)
public void reportFileAttributes(FileAttributesTag tag, int recordLength)
Copyright © 2016 The Apache Software Foundation. All rights reserved.