java.lang.Object
com.anotherbigidea.flash.readers.TagParser
- All Implemented Interfaces:
- com.anotherbigidea.flash.SWFConstants, com.anotherbigidea.flash.interfaces.SWFFileSignature, com.anotherbigidea.flash.interfaces.SWFHeader, com.anotherbigidea.flash.interfaces.SWFTags
- public class TagParser
- extends java.lang.Object
- implements com.anotherbigidea.flash.interfaces.SWFTags, com.anotherbigidea.flash.SWFConstants, com.anotherbigidea.flash.interfaces.SWFFileSignature
Parse Tags and drive a SWFTagTypes interface.
| Fields inherited from interface com.anotherbigidea.flash.SWFConstants |
BITMAP_FORMAT_16_BIT, BITMAP_FORMAT_32_BIT, BITMAP_FORMAT_8_BIT, BUTTON2_IDLE2OVERDOWN, BUTTON2_IDLE2OVERUP, BUTTON2_OUTDOWN2IDLE, BUTTON2_OUTDOWN2OVERDOWN, BUTTON2_OVERDOWN2IDLE, BUTTON2_OVERDOWN2OUTDOWN, BUTTON2_OVERDOWN2OVERUP, BUTTON2_OVERUP2IDLE, BUTTON2_OVERUP2OVERDOWN, CLIP_ACTION_DATA, CLIP_ACTION_ENTER_FRAME, CLIP_ACTION_KEY_DOWN, CLIP_ACTION_KEY_UP, CLIP_ACTION_MOUSE_DOWN, CLIP_ACTION_MOUSE_MOVE, CLIP_ACTION_MOUSE_UP, CLIP_ACTION_ON_LOAD, CLIP_ACTION_UNLOAD, FILL_CLIPPED_BITMAP, FILL_LINEAR_GRADIENT, FILL_RADIAL_GRADIENT, FILL_SOLID, FILL_TILED_BITMAP, FLASH_MX_VERSION, FONT_ANSI, FONT_BOLD, FONT_ITALIC, FONT_SHIFTJIS, FONT_UNICODE, FONT_WIDECHARS, FONT2_32OFFSETS, FONT2_ANSI, FONT2_BOLD, FONT2_HAS_LAYOUT, FONT2_ITALIC, FONT2_SHIFTJIS, FONT2_UNICODE, FONT2_WIDECHARS, LANGUAGE_CODE_JAPANESE, LANGUAGE_CODE_KOREAN, LANGUAGE_CODE_LATIN, LANGUAGE_CODE_NONE, LANGUAGE_CODE_SIMPLIFIED_CHINESE, LANGUAGE_CODE_TRADITIONAL_CHINESE, SOUND_FORMAT_ADPCM, SOUND_FORMAT_MP3, SOUND_FORMAT_NELLYMOSER, SOUND_FORMAT_RAW, SOUND_FORMAT_RAW_LITTLEENDIAN, SOUND_FREQ_11KHZ, SOUND_FREQ_22KHZ, SOUND_FREQ_44KHZ, SOUND_FREQ_5_5KHZ, STRING_ENCODING_MX, STRING_ENCODING_PRE_MX, TAG_DEFINEBITS, TAG_DEFINEBITSJPEG2, TAG_DEFINEBITSJPEG3, TAG_DEFINEBITSLOSSLESS, TAG_DEFINEBITSLOSSLESS2, TAG_DEFINEBUTTON, TAG_DEFINEBUTTON2, TAG_DEFINEBUTTONCXFORM, TAG_DEFINEBUTTONSOUND, TAG_DEFINEFONT, TAG_DEFINEFONT2, TAG_DEFINEFONTINFO, TAG_DEFINEFONTINFO2, TAG_DEFINEMORPHSHAPE, TAG_DEFINEQUICKTIMEMOVIE, TAG_DEFINESHAPE, TAG_DEFINESHAPE2, TAG_DEFINESHAPE3, TAG_DEFINESOUND, TAG_DEFINESPRITE, TAG_DEFINETEXT, TAG_DEFINETEXT2, TAG_DEFINETEXTFIELD, TAG_DOACTION, TAG_DOINITACTION, TAG_ENABLEDEBUG, TAG_ENABLEDEBUGGER2, TAG_END, TAG_EXPORT, TAG_FLASHGENERATOR, TAG_FRAMELABEL, TAG_FREECHARACTER, TAG_GEN_EXTERNAL_FONT, TAG_GENERATOR_TEXT, TAG_IMPORT, TAG_JPEGTABLES, TAG_NAMECHARACTER, TAG_PLACEOBJECT, TAG_PLACEOBJECT2, TAG_PROTECT, TAG_REMOVEOBJECT, TAG_REMOVEOBJECT2, TAG_SERIALNUMBER, TAG_SETBACKGROUNDCOLOR, TAG_SHOWFRAME, TAG_SOUNDSTREAMBLOCK, TAG_SOUNDSTREAMHEAD, TAG_SOUNDSTREAMHEAD2, TAG_STARTSOUND, TAG_TEMPLATECOMMAND, TEXT_HAS_COLOR, TEXT_HAS_FONT, TEXT_HAS_XOFFSET, TEXT_HAS_YOFFSET, TEXTFIELD_ALIGN_CENTER, TEXTFIELD_ALIGN_JUSTIFY, TEXTFIELD_ALIGN_LEFT, TEXTFIELD_ALIGN_RIGHT, TEXTFIELD_DISABLE_EDIT, TEXTFIELD_DRAW_BORDER, TEXTFIELD_FONT_GLYPHS, TEXTFIELD_HAS_FONT, TEXTFIELD_HAS_LAYOUT, TEXTFIELD_HAS_TEXT, TEXTFIELD_HAS_TEXT_COLOR, TEXTFIELD_HTML, TEXTFIELD_IS_MULTILINE, TEXTFIELD_IS_PASSWORD, TEXTFIELD_LIMIT_CHARS, TEXTFIELD_NO_SELECTION, TEXTFIELD_WORD_WRAP, TWIPS |
|
Method Summary |
void |
header(int version,
long length,
int twipsWidth,
int twipsHeight,
int frameRate,
int frameCount)
Interface SWFTags |
static void |
main(java.lang.String[] args)
|
protected void |
parseButtonCXForm(com.anotherbigidea.io.InStream in)
|
protected void |
parseChangeRecord(com.anotherbigidea.io.InStream in,
int flags,
com.anotherbigidea.flash.interfaces.SWFVectors vectors,
com.anotherbigidea.flash.interfaces.SWFShape shape,
boolean hasAlpha,
int[] numFillBits,
int[] numLineBits)
|
protected void |
parseDefineBits(com.anotherbigidea.io.InStream in)
|
protected void |
parseDefineBitsJPEG3(com.anotherbigidea.io.InStream in)
|
protected void |
parseDefineBitsLossless(com.anotherbigidea.io.InStream in,
int length,
boolean hasAlpha)
|
protected void |
parseDefineButton(com.anotherbigidea.io.InStream in)
|
protected void |
parseDefineButton2(com.anotherbigidea.io.InStream in)
|
protected void |
parseDefineButtonSound(com.anotherbigidea.io.InStream in)
|
protected void |
parseDefineFont(com.anotherbigidea.io.InStream in)
|
protected void |
parseDefineFont2(com.anotherbigidea.io.InStream in)
|
protected void |
parseDefineJPEG2(com.anotherbigidea.io.InStream in,
int length)
|
protected void |
parseDefineJPEGTables(com.anotherbigidea.io.InStream in)
|
protected void |
parseDefineShape(int type,
com.anotherbigidea.io.InStream in)
|
protected void |
parseDefineSound(com.anotherbigidea.io.InStream in)
|
protected void |
parseDefineSprite(com.anotherbigidea.io.InStream in)
|
protected void |
parseDefineText(int type,
com.anotherbigidea.io.InStream in)
|
protected void |
parseDefineTextField(com.anotherbigidea.io.InStream in)
|
protected void |
parseDoAction(com.anotherbigidea.io.InStream in)
|
protected void |
parseDoInitAction(com.anotherbigidea.io.InStream in)
|
protected void |
parseEnableDebugger2(com.anotherbigidea.io.InStream in,
int length)
|
protected void |
parseExport(com.anotherbigidea.io.InStream in)
|
void |
parseFillStyle(com.anotherbigidea.io.InStream in,
com.anotherbigidea.flash.interfaces.SWFShape shape,
boolean hasAlpha)
|
protected void |
parseFontInfo(com.anotherbigidea.io.InStream in,
int length,
boolean isFI2)
|
protected void |
parseFrameLabel(com.anotherbigidea.io.InStream in,
byte[] contents)
|
protected void |
parseImport(com.anotherbigidea.io.InStream in)
|
void |
parseLineStyle(com.anotherbigidea.io.InStream in,
com.anotherbigidea.flash.interfaces.SWFShape shape,
boolean hasAlpha)
|
protected void |
parseMorphFillStyle(com.anotherbigidea.io.InStream in,
com.anotherbigidea.flash.interfaces.SWFShape shape)
|
protected void |
parseMorphLineStyle(com.anotherbigidea.io.InStream in,
com.anotherbigidea.flash.interfaces.SWFShape shape)
|
protected void |
parseMorphShape(com.anotherbigidea.io.InStream in)
|
protected void |
parsePlaceObject(com.anotherbigidea.io.InStream in,
int length)
|
protected void |
parsePlaceObject2(com.anotherbigidea.io.InStream in)
|
protected void |
parseShape(com.anotherbigidea.io.InStream in,
com.anotherbigidea.flash.interfaces.SWFVectors vectors,
boolean hasStyle,
boolean hasAlpha)
|
protected void |
parseSoundStreamBlock(com.anotherbigidea.io.InStream in)
|
protected void |
parseSoundStreamHead(boolean adpcmOnly,
com.anotherbigidea.io.InStream in)
|
protected void |
parseStartSound(com.anotherbigidea.io.InStream in)
|
protected void |
parseStyles(com.anotherbigidea.io.InStream in,
com.anotherbigidea.flash.interfaces.SWFShape shape,
boolean hasAlpha)
|
void |
signature(java.lang.String sig)
Pass the signature. |
void |
tag(int tagType,
boolean longTag,
byte[] contents)
Interface SWFTags |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
mStringEncoding
protected java.lang.String mStringEncoding
mFlashVersion
protected int mFlashVersion
mTagtypes
protected com.anotherbigidea.flash.interfaces.SWFTagTypes mTagtypes
TagParser
public TagParser(com.anotherbigidea.flash.interfaces.SWFTagTypes tagtypes)
signature
public void signature(java.lang.String sig)
- Description copied from interface:
com.anotherbigidea.flash.interfaces.SWFFileSignature
- Pass the signature. This method must be called before the header(..)
method in SWFHeader.
- Specified by:
signature in interface com.anotherbigidea.flash.interfaces.SWFFileSignature
header
public void header(int version,
long length,
int twipsWidth,
int twipsHeight,
int frameRate,
int frameCount)
throws java.io.IOException
- Interface SWFTags
- Specified by:
header in interface com.anotherbigidea.flash.interfaces.SWFHeader
tag
public void tag(int tagType,
boolean longTag,
byte[] contents)
throws java.io.IOException
- Interface SWFTags
- Specified by:
tag in interface com.anotherbigidea.flash.interfaces.SWFTags
parseEnableDebugger2
protected void parseEnableDebugger2(com.anotherbigidea.io.InStream in,
int length)
throws java.io.IOException
parseFrameLabel
protected void parseFrameLabel(com.anotherbigidea.io.InStream in,
byte[] contents)
throws java.io.IOException
parseDefineSound
protected void parseDefineSound(com.anotherbigidea.io.InStream in)
throws java.io.IOException
parseStartSound
protected void parseStartSound(com.anotherbigidea.io.InStream in)
throws java.io.IOException
parseDefineButtonSound
protected void parseDefineButtonSound(com.anotherbigidea.io.InStream in)
throws java.io.IOException
parseSoundStreamHead
protected void parseSoundStreamHead(boolean adpcmOnly,
com.anotherbigidea.io.InStream in)
throws java.io.IOException
parseSoundStreamBlock
protected void parseSoundStreamBlock(com.anotherbigidea.io.InStream in)
throws java.io.IOException
parseDefineBits
protected void parseDefineBits(com.anotherbigidea.io.InStream in)
throws java.io.IOException
parseDefineJPEGTables
protected void parseDefineJPEGTables(com.anotherbigidea.io.InStream in)
throws java.io.IOException
parseDefineBitsJPEG3
protected void parseDefineBitsJPEG3(com.anotherbigidea.io.InStream in)
throws java.io.IOException
parseMorphShape
protected void parseMorphShape(com.anotherbigidea.io.InStream in)
throws java.io.IOException
parseMorphLineStyle
protected void parseMorphLineStyle(com.anotherbigidea.io.InStream in,
com.anotherbigidea.flash.interfaces.SWFShape shape)
throws java.io.IOException
parseMorphFillStyle
protected void parseMorphFillStyle(com.anotherbigidea.io.InStream in,
com.anotherbigidea.flash.interfaces.SWFShape shape)
throws java.io.IOException
parseDefineJPEG2
protected void parseDefineJPEG2(com.anotherbigidea.io.InStream in,
int length)
throws java.io.IOException
parseDefineBitsLossless
protected void parseDefineBitsLossless(com.anotherbigidea.io.InStream in,
int length,
boolean hasAlpha)
throws java.io.IOException
parseExport
protected void parseExport(com.anotherbigidea.io.InStream in)
throws java.io.IOException
parseImport
protected void parseImport(com.anotherbigidea.io.InStream in)
throws java.io.IOException
parseDefineButton2
protected void parseDefineButton2(com.anotherbigidea.io.InStream in)
throws java.io.IOException
parseButtonCXForm
protected void parseButtonCXForm(com.anotherbigidea.io.InStream in)
throws java.io.IOException
parseDefineButton
protected void parseDefineButton(com.anotherbigidea.io.InStream in)
throws java.io.IOException
parseDefineText
protected void parseDefineText(int type,
com.anotherbigidea.io.InStream in)
throws java.io.IOException
parseDefineTextField
protected void parseDefineTextField(com.anotherbigidea.io.InStream in)
throws java.io.IOException
parseDefineFont2
protected void parseDefineFont2(com.anotherbigidea.io.InStream in)
throws java.io.IOException
parseFontInfo
protected void parseFontInfo(com.anotherbigidea.io.InStream in,
int length,
boolean isFI2)
throws java.io.IOException
parseDefineFont
protected void parseDefineFont(com.anotherbigidea.io.InStream in)
throws java.io.IOException
parseDefineSprite
protected void parseDefineSprite(com.anotherbigidea.io.InStream in)
throws java.io.IOException
parsePlaceObject2
protected void parsePlaceObject2(com.anotherbigidea.io.InStream in)
throws java.io.IOException
parsePlaceObject
protected void parsePlaceObject(com.anotherbigidea.io.InStream in,
int length)
throws java.io.IOException
parseDoAction
protected void parseDoAction(com.anotherbigidea.io.InStream in)
throws java.io.IOException
parseDoInitAction
protected void parseDoInitAction(com.anotherbigidea.io.InStream in)
throws java.io.IOException
parseDefineShape
protected void parseDefineShape(int type,
com.anotherbigidea.io.InStream in)
throws java.io.IOException
parseShape
protected void parseShape(com.anotherbigidea.io.InStream in,
com.anotherbigidea.flash.interfaces.SWFVectors vectors,
boolean hasStyle,
boolean hasAlpha)
throws java.io.IOException
parseChangeRecord
protected void parseChangeRecord(com.anotherbigidea.io.InStream in,
int flags,
com.anotherbigidea.flash.interfaces.SWFVectors vectors,
com.anotherbigidea.flash.interfaces.SWFShape shape,
boolean hasAlpha,
int[] numFillBits,
int[] numLineBits)
throws java.io.IOException
parseStyles
protected void parseStyles(com.anotherbigidea.io.InStream in,
com.anotherbigidea.flash.interfaces.SWFShape shape,
boolean hasAlpha)
throws java.io.IOException
parseLineStyle
public void parseLineStyle(com.anotherbigidea.io.InStream in,
com.anotherbigidea.flash.interfaces.SWFShape shape,
boolean hasAlpha)
throws java.io.IOException
parseFillStyle
public void parseFillStyle(com.anotherbigidea.io.InStream in,
com.anotherbigidea.flash.interfaces.SWFShape shape,
boolean hasAlpha)
throws java.io.IOException
main
public static void main(java.lang.String[] args)
throws java.io.IOException