|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.xml.sax.helpers.DefaultHandler pt.tumba.parser.swf.SaxHandlerBase pt.tumba.parser.swf.SWFSaxWriter
public class SWFSaxWriter
A SAX2 Handler that drives any implementation of the SWFTagTypes interface and understands the XML Vocabulary produced by SWFSaxParser. This class is not thread-safe but it can be reused by setting a different SWFTagTypes value. Reuse is recommended since the initialization overhead is expensive.
Nested Class Summary | |
---|---|
protected class |
SWFSaxWriter.ActionAdd
Description of the Class |
protected class |
SWFSaxWriter.ActionAnd
Description of the Class |
protected class |
SWFSaxWriter.ActionAsciiToChar
Description of the Class |
protected class |
SWFSaxWriter.ActionAsciiToMultibyteChar
Description of the Class |
protected class |
SWFSaxWriter.ActionBitAnd
Description of the Class |
protected class |
SWFSaxWriter.ActionBitOr
Description of the Class |
protected class |
SWFSaxWriter.ActionBitXor
Description of the Class |
protected class |
SWFSaxWriter.ActionCall
Description of the Class |
protected class |
SWFSaxWriter.ActionCallFunction
Description of the Class |
protected class |
SWFSaxWriter.ActionCallMethod
Description of the Class |
protected class |
SWFSaxWriter.ActionCharToAscii
Description of the Class |
protected class |
SWFSaxWriter.ActionCloneSprite
Description of the Class |
protected class |
SWFSaxWriter.ActionComment
Description of the Class |
protected class |
SWFSaxWriter.ActionConcat
Description of the Class |
protected class |
SWFSaxWriter.ActionDecrement
Description of the Class |
protected class |
SWFSaxWriter.ActionDefineLocal
Description of the Class |
protected class |
SWFSaxWriter.ActionDefineLocalValue
Description of the Class |
protected class |
SWFSaxWriter.ActionDeleteProperty
Description of the Class |
protected class |
SWFSaxWriter.ActionDeleteThreadVars
Description of the Class |
protected class |
SWFSaxWriter.ActionDivide
Description of the Class |
protected class |
SWFSaxWriter.ActionDuplicate
Description of the Class |
protected class |
SWFSaxWriter.ActionEndDrag
Description of the Class |
protected class |
SWFSaxWriter.ActionEnumerate
Description of the Class |
protected class |
SWFSaxWriter.ActionEquals
Description of the Class |
protected class |
SWFSaxWriter.ActionFunction
Description of the Class |
protected class |
SWFSaxWriter.ActionGetMember
Description of the Class |
protected class |
SWFSaxWriter.ActionGetProperty
Description of the Class |
protected class |
SWFSaxWriter.ActionGetTargetPath
Description of the Class |
protected class |
SWFSaxWriter.ActionGetTime
Description of the Class |
protected class |
SWFSaxWriter.ActionGetUrl
Description of the Class |
protected class |
SWFSaxWriter.ActionGetVariable
Description of the Class |
protected class |
SWFSaxWriter.ActionGotoFrame
Description of the Class |
protected class |
SWFSaxWriter.ActionIf
Description of the Class |
protected class |
SWFSaxWriter.ActionIncrement
Description of the Class |
protected class |
SWFSaxWriter.ActionInitArray
Description of the Class |
protected class |
SWFSaxWriter.ActionInitObject
Description of the Class |
protected class |
SWFSaxWriter.ActionJump
Description of the Class |
protected class |
SWFSaxWriter.ActionJumpLabel
Description of the Class |
protected class |
SWFSaxWriter.ActionLessThan
Description of the Class |
protected class |
SWFSaxWriter.ActionLookupTable
Description of the Class |
protected class |
SWFSaxWriter.ActionModulo
Description of the Class |
protected class |
SWFSaxWriter.ActionMultibyteSubstring
Description of the Class |
protected class |
SWFSaxWriter.ActionMultiply
Description of the Class |
protected class |
SWFSaxWriter.ActionMutlibyteCharToAscii
Description of the Class |
protected class |
SWFSaxWriter.ActionMutlibyteStringLength
Description of the Class |
protected class |
SWFSaxWriter.ActionNewMethod
Description of the Class |
protected class |
SWFSaxWriter.ActionNewObject
Description of the Class |
protected class |
SWFSaxWriter.ActionNextFrame
Description of the Class |
protected class |
SWFSaxWriter.ActionNot
Description of the Class |
protected class |
SWFSaxWriter.ActionOr
Description of the Class |
protected class |
SWFSaxWriter.ActionPlay
Description of the Class |
protected class |
SWFSaxWriter.ActionPop
Description of the Class |
protected class |
SWFSaxWriter.ActionPrevFrame
Description of the Class |
protected class |
SWFSaxWriter.ActionPush
Description of the Class |
protected class |
SWFSaxWriter.ActionRandomNumber
Description of the Class |
protected class |
SWFSaxWriter.ActionRemoveSprite
Description of the Class |
protected class |
SWFSaxWriter.ActionReturn
Description of the Class |
protected class |
SWFSaxWriter.Actions
Description of the Class |
protected class |
SWFSaxWriter.ActionSetMember
Description of the Class |
protected class |
SWFSaxWriter.ActionSetProperty
Description of the Class |
protected class |
SWFSaxWriter.ActionSetTarget
Description of the Class |
protected class |
SWFSaxWriter.ActionSetVariable
Description of the Class |
protected class |
SWFSaxWriter.ActionShiftLeft
Description of the Class |
protected class |
SWFSaxWriter.ActionShiftRight
Description of the Class |
protected class |
SWFSaxWriter.ActionShiftRightUnsigned
Description of the Class |
protected class |
SWFSaxWriter.ActionStartDrag
Description of the Class |
protected class |
SWFSaxWriter.ActionStop
Description of the Class |
protected class |
SWFSaxWriter.ActionStopSounds
Description of the Class |
protected class |
SWFSaxWriter.ActionStore
Description of the Class |
protected class |
SWFSaxWriter.ActionStringEquals
Description of the Class |
protected class |
SWFSaxWriter.ActionStringLength
Description of the Class |
protected class |
SWFSaxWriter.ActionStringLessThan
Description of the Class |
protected class |
SWFSaxWriter.ActionSubstring
Description of the Class |
protected class |
SWFSaxWriter.ActionSubtract
Description of the Class |
protected class |
SWFSaxWriter.ActionSwap
Description of the Class |
protected class |
SWFSaxWriter.ActionToggleQuality
Description of the Class |
protected class |
SWFSaxWriter.ActionToInteger
Description of the Class |
protected class |
SWFSaxWriter.ActionToNumber
Description of the Class |
protected class |
SWFSaxWriter.ActionToString
Description of the Class |
protected class |
SWFSaxWriter.ActionTrace
Description of the Class |
protected class |
SWFSaxWriter.ActionTypedAdd
Description of the Class |
protected class |
SWFSaxWriter.ActionTypedEquals
Description of the Class |
protected class |
SWFSaxWriter.ActionTypedLessThan
Description of the Class |
protected class |
SWFSaxWriter.ActionTypeOf
Description of the Class |
protected class |
SWFSaxWriter.ActionUnknown
Description of the Class |
protected class |
SWFSaxWriter.ActionWaitForFrame
Description of the Class |
protected class |
SWFSaxWriter.ActionWith
Description of the Class |
protected class |
SWFSaxWriter.Anticlockwise
Description of the Class |
protected class |
SWFSaxWriter.BackgroundColor
Description of the Class |
protected class |
SWFSaxWriter.Bitmap
Description of the Class |
protected class |
SWFSaxWriter.Button
Description of the Class |
protected class |
SWFSaxWriter.ButtonSound
Description of the Class |
protected class |
SWFSaxWriter.Char
Description of the Class |
protected class |
SWFSaxWriter.Code
Description of the Class |
protected class |
SWFSaxWriter.ColorElem
Description of the Class |
protected class |
SWFSaxWriter.Colors
Description of the Class |
protected class |
SWFSaxWriter.CXFormElem
Description of the Class |
protected class |
SWFSaxWriter.EditField
Description of the Class |
protected class |
SWFSaxWriter.EditFont
Description of the Class |
protected class |
SWFSaxWriter.EnableDebug
Description of the Class |
protected class |
SWFSaxWriter.Export
Description of the Class |
protected class |
SWFSaxWriter.FontInfo
Description of the Class |
protected class |
SWFSaxWriter.Frame
Description of the Class |
protected class |
SWFSaxWriter.Generator
Description of the Class |
protected class |
SWFSaxWriter.GeneratorCommand
Description of the Class |
protected class |
SWFSaxWriter.GeneratorFont
Description of the Class |
protected class |
SWFSaxWriter.GeneratorNameCharacter
Description of the Class |
protected class |
SWFSaxWriter.GeneratorText
Description of the Class |
protected class |
SWFSaxWriter.Glyph
Description of the Class |
protected class |
SWFSaxWriter.Import
Description of the Class |
protected class |
SWFSaxWriter.Jpeg
Description of the Class |
protected class |
SWFSaxWriter.JPEGAlpha
Description of the Class |
protected class |
SWFSaxWriter.JPEGHeader
Description of the Class |
protected class |
SWFSaxWriter.JPEGImage
Description of the Class |
protected class |
SWFSaxWriter.Layer
Description of the Class |
protected class |
SWFSaxWriter.LookupValue
Description of the Class |
protected class |
SWFSaxWriter.MatrixElem
Description of the Class |
protected class |
SWFSaxWriter.Morph
Description of the Class |
protected class |
SWFSaxWriter.Movie
Description of the Class |
protected class |
SWFSaxWriter.Pixels
Description of the Class |
protected class |
SWFSaxWriter.Place
Description of the Class |
protected class |
SWFSaxWriter.Protect
Description of the Class |
protected class |
SWFSaxWriter.QTMovie
Description of the Class |
protected class |
SWFSaxWriter.Release
Description of the Class |
protected class |
SWFSaxWriter.Remove
Description of the Class |
protected class |
SWFSaxWriter.SerialNumber
Description of the Class |
protected class |
SWFSaxWriter.SetFont
Description of the Class |
protected class |
SWFSaxWriter.SetX
Description of the Class |
protected class |
SWFSaxWriter.SetY
Description of the Class |
protected class |
SWFSaxWriter.Shape
Description of the Class |
protected class |
SWFSaxWriter.ShapeColorFill
Description of the Class |
protected class |
SWFSaxWriter.ShapeCurve
Description of the Class |
protected class |
SWFSaxWriter.ShapeFill0
Description of the Class |
protected class |
SWFSaxWriter.ShapeFill1
Description of the Class |
protected class |
SWFSaxWriter.ShapeGradient
Description of the Class |
protected class |
SWFSaxWriter.ShapeImage
Description of the Class |
protected class |
SWFSaxWriter.ShapeLine
Description of the Class |
protected class |
SWFSaxWriter.ShapeLineStyle
Description of the Class |
protected class |
SWFSaxWriter.ShapeMove
Description of the Class |
protected class |
SWFSaxWriter.ShapeSetLine
Description of the Class |
protected class |
SWFSaxWriter.Sound
Description of the Class |
protected class |
SWFSaxWriter.Sound_Info
Description of the Class |
protected class |
SWFSaxWriter.SoundBlock
Description of the Class |
protected class |
SWFSaxWriter.SoundHeader
Description of the Class |
protected class |
SWFSaxWriter.Sprite
Description of the Class |
protected class |
SWFSaxWriter.StartSound
Description of the Class |
protected class |
SWFSaxWriter.Step
Description of the Class |
protected class |
SWFSaxWriter.Symbol
Description of the Class |
protected class |
SWFSaxWriter.Tag
Description of the Class |
protected class |
SWFSaxWriter.Text
Description of the Class |
protected class |
SWFSaxWriter.TextFont
Description of the Class |
Nested classes/interfaces inherited from class pt.tumba.parser.swf.SaxHandlerBase |
---|
SaxHandlerBase.ContentElementType, SaxHandlerBase.ElementType, SaxHandlerBase.GatheringElementType |
Field Summary | |
---|---|
protected int |
actionMode
Description of the Field |
protected SWFActions |
actions
Description of the Field |
protected java.util.List |
bitmapColors
Description of the Field |
protected java.util.List |
buttonRecords
Description of the Field |
protected java.util.List |
chars
Description of the Field |
protected java.util.List |
codes
Description of the Field |
protected Color |
color
Description of the Field |
protected java.util.List |
colors
Description of the Field |
protected AlphaTransform |
cxform
Description of the Field |
protected int |
flashVersion
Description of the Field |
protected boolean |
hasAlpha
Description of the Field |
protected boolean |
idAllocate
Description of the Field |
protected java.util.Map |
ids
Description of the Field |
protected byte[] |
jpegAlpha
Description of the Field |
protected java.util.List |
lookupValues
Description of the Field |
protected Matrix |
matrix
Description of the Field |
protected SWFTagTypes |
movieTags
Description of the Field |
protected int |
newId
Description of the Field |
protected byte[] |
pixelData
Description of the Field |
protected java.util.List |
ratios
Description of the Field |
protected SWFShape |
shape
Description of the Field |
protected java.util.List |
soundInfos
Description of the Field |
protected java.util.List |
symbols
Description of the Field |
protected SWFTagTypes |
tags
Description of the Field |
protected SWFText |
text
Description of the Field |
protected SWFVectors |
vectors
Description of the Field |
Fields inherited from class pt.tumba.parser.swf.SaxHandlerBase |
---|
elementTypes, elems, elemType, gatherBuffer, gatheringElement, gatherMode |
Constructor Summary | |
---|---|
SWFSaxWriter(SWFTagTypes tags)
Constructor for the SWFSaxWriter object |
Method Summary | |
---|---|
protected void |
flushChars()
Description of the Method |
protected int |
getId(java.lang.String id)
Resolve a symbolic id to a numeric id |
protected int |
getOrAllocateId(java.lang.String id)
Get an existing symbolic id - or allocate one if it does not exist |
protected void |
initElements()
Description of the Method |
protected int |
newId(java.lang.String id)
Define a symbolic id and allocate the numeric id |
void |
setTagTypes(SWFTagTypes tags)
Sets the tagTypes attribute of the SWFSaxWriter object |
Methods inherited from class pt.tumba.parser.swf.SaxHandlerBase |
---|
characters, dispatchAllMatchingGatheredElements, dispatchGatheredElement, endElement, endGatherMode, getAttr, getAttrBool, getAttrDouble, getAttrInt, startElement, startGatherMode |
Methods inherited from class org.xml.sax.helpers.DefaultHandler |
---|
endDocument, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warning |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected SWFTagTypes tags
protected SWFTagTypes movieTags
protected SWFShape shape
protected SWFVectors vectors
protected SWFActions actions
protected SWFText text
protected int actionMode
protected int flashVersion
protected boolean idAllocate
protected int newId
protected Matrix matrix
protected Color color
protected AlphaTransform cxform
protected boolean hasAlpha
protected java.util.Map ids
protected java.util.List buttonRecords
protected java.util.List bitmapColors
protected byte[] pixelData
protected byte[] jpegAlpha
protected java.util.List colors
protected java.util.List ratios
protected java.util.List symbols
protected java.util.List chars
protected java.util.List codes
protected java.util.List lookupValues
protected java.util.List soundInfos
Constructor Detail |
---|
public SWFSaxWriter(SWFTagTypes tags)
tags
- Description of the ParameterMethod Detail |
---|
public void setTagTypes(SWFTagTypes tags)
tags
- The new tagTypes valueprotected int getId(java.lang.String id) throws org.xml.sax.SAXException
id
- Description of the Parameter
org.xml.sax.SAXException
- Description of the Exceptionprotected int getOrAllocateId(java.lang.String id) throws org.xml.sax.SAXException
id
- Description of the Parameter
org.xml.sax.SAXException
- Description of the Exceptionprotected int newId(java.lang.String id) throws org.xml.sax.SAXException
id
- Description of the Parameter
org.xml.sax.SAXException
- Description of the Exceptionprotected final void initElements()
protected void flushChars() throws java.lang.Exception
java.lang.Exception
- Description of the Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |