亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? swftagdumper.java

?? java版本的flash文件(swf)播放器
?? JAVA
?? 第 1 頁 / 共 3 頁
字號:
/****************************************************************
 * Copyright (c) 2001, David N. Main, All rights reserved.
 * 
 * Redistribution and use in source and binary forms, with or
 * without modification, are permitted provided that the 
 * following conditions are met:
 *
 * 1. Redistributions of source code must retain the above 
 * copyright notice, this list of conditions and the following 
 * disclaimer. 
 * 
 * 2. Redistributions in binary form must reproduce the above 
 * copyright notice, this list of conditions and the following 
 * disclaimer in the documentation and/or other materials 
 * provided with the distribution.
 * 
 * 3. The name of the author may not be used to endorse or 
 * promote products derived from this software without specific 
 * prior written permission. 
 * 
 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY 
 * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, 
 * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A 
 * PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE 
 * AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 
 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 
 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 
 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 
 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 
 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR 
 * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, 
 * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 ****************************************************************/
package com.anotherbigidea.flash.writers;

import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.io.PrintWriter;
import java.util.Enumeration;
import java.util.Vector;

import com.anotherbigidea.flash.SWFConstants;
import com.anotherbigidea.flash.interfaces.SWFActions;
import com.anotherbigidea.flash.interfaces.SWFFileSignature;
import com.anotherbigidea.flash.interfaces.SWFShape;
import com.anotherbigidea.flash.interfaces.SWFTagTypes;
import com.anotherbigidea.flash.interfaces.SWFTags;
import com.anotherbigidea.flash.interfaces.SWFText;
import com.anotherbigidea.flash.interfaces.SWFVectors;
import com.anotherbigidea.flash.readers.SWFReader;
import com.anotherbigidea.flash.readers.TagParser;
import com.anotherbigidea.flash.structs.AlphaColor;
import com.anotherbigidea.flash.structs.AlphaTransform;
import com.anotherbigidea.flash.structs.ButtonRecord;
import com.anotherbigidea.flash.structs.ButtonRecord2;
import com.anotherbigidea.flash.structs.Color;
import com.anotherbigidea.flash.structs.ColorTransform;
import com.anotherbigidea.flash.structs.Matrix;
import com.anotherbigidea.flash.structs.Rect;
import com.anotherbigidea.flash.structs.SoundInfo;
import com.anotherbigidea.util.Hex;

/**
 * An implementation of the SWFTagTypes interface that produces a debug dump
 */
public class SWFTagDumper 
	implements SWFTagTypes, SWFShape, SWFText, SWFFileSignature 
{
    protected PrintWriter writer;
    protected String dashes = "---------------";
    protected boolean dumpHex;
    protected String indent = "";
    protected boolean decompileActions = false;
    
    /** 
     * Dump to System.out
     * @param dumpHex if true then binary data will dumped as hex - otherwise skipped
     */
    public SWFTagDumper( boolean dumpHex, boolean decompileActions )
    {
        this( System.out, dumpHex, decompileActions );
    }
    
    /**
     * Dump to the given output stream
     * @param dumpHex if true then binary data will dumped as hex - otherwise skipped
     */
    public SWFTagDumper( OutputStream out, 
                         boolean dumpHex, 
                         boolean decompileActions )
    {
        writer = new PrintWriter( out );
        this.dumpHex = dumpHex;
        this.decompileActions = decompileActions;
    }
    
    public SWFTagDumper( PrintWriter writer, 
                         boolean dumpHex, 
                         boolean decompileActions )
    {
        this.writer = writer;
        this.dumpHex = dumpHex;
        this.decompileActions = decompileActions;
    }

	/**
	 * @see SWFFileSignature#signature(String)
	 */
	public void signature( String sig ) {
		println( "signature: " + sig );
	}

    protected void println( String line )
    {
        writer.println( indent + line );
    }
    
    /**
     * SWFTags interface
     */    
    public void tag( int tagType, boolean longTag, byte[] contents ) 
        throws IOException
    {
        println( "Tag " + tagType + " length=" + contents.length );
        
        if( dumpHex )
        {
            Hex.dump( writer, contents, 0L, indent + "    ", false );
            println( dashes );
        }
    }

    /**
     * SWFHeader interface.
     */
    public void header( int version, long length,
                        int twipsWidth, int twipsHeight,
                        int frameRate, int frameCount ) throws IOException
    {
        println( "header: version=" + version + 
                 " length=" + length + " width=" + twipsWidth +
                 " height=" + twipsHeight + " rate=" + frameRate +
                 " frame-count=" + frameCount );
    }
    
    /**
     * SWFTagTypes interface
     */
    public void tagEnd() throws IOException
    {
        println( "end" );
        println( dashes );
    }

    /**
     * SWFTagTypes interface
     */
    public void tagStartSound( int soundId, SoundInfo info ) throws IOException
    {
        println( "start-sound id=" + soundId + " " + info );
    }
    
    /**
     * SWFTagTypes interface
     */
    public void tagSoundStreamHead( 
        int playbackFrequency, boolean playback16bit, boolean playbackStereo,
        int streamFormat, int streamFrequency, boolean stream16bit, boolean streamStereo,
        int averageSampleCount ) throws IOException
    {
        printSoundStreamHead( "sound-stream-head", 
            playbackFrequency, playback16bit, playbackStereo,
            streamFormat, streamFrequency, stream16bit, streamStereo,
            averageSampleCount );
    }
    
    /**
     * SWFTagTypes interface
     */
    public void tagSoundStreamHead2( 
        int playbackFrequency, boolean playback16bit, boolean playbackStereo,
        int streamFormat, int streamFrequency, boolean stream16bit, boolean streamStereo,
        int averageSampleCount ) throws IOException
    {
        printSoundStreamHead( "sound-stream-head-2", 
            playbackFrequency, playback16bit, playbackStereo,
            streamFormat, streamFrequency, stream16bit, streamStereo,
            averageSampleCount );
    }
    
    public void printSoundStreamHead( String name,
        int playbackFrequency, boolean playback16bit, boolean playbackStereo,
        int streamFormat, int streamFrequency, boolean stream16bit, boolean streamStereo,
        int averageSampleCount ) throws IOException
    {
        String playFreq = "5.5";
        if( playbackFrequency == SWFConstants.SOUND_FREQ_11KHZ ) playFreq = "11";
        if( playbackFrequency == SWFConstants.SOUND_FREQ_22KHZ ) playFreq = "22";
        if( playbackFrequency == SWFConstants.SOUND_FREQ_44KHZ ) playFreq = "44";
        
        String streamFreq = "5.5";
        if( streamFrequency == SWFConstants.SOUND_FREQ_11KHZ ) streamFreq = "11";
        if( streamFrequency == SWFConstants.SOUND_FREQ_22KHZ ) streamFreq = "22";
        if( streamFrequency == SWFConstants.SOUND_FREQ_44KHZ ) streamFreq = "44";        
        
        String format = "RawSamples";
        if( streamFormat == SWFConstants.SOUND_FORMAT_ADPCM ) format = "ADPCM";
        if( streamFormat == SWFConstants.SOUND_FORMAT_MP3   ) format = "MP3";
        
        println( name + " play at " + playFreq + "kHz stereo=" + playbackStereo +
                 " 16bit=" + playback16bit + " | Stream at " + streamFreq +
                 "kHz format=" + format + " stereo=" + streamStereo +
                 " 16bit=" + stream16bit + " Avg-Samples=" + averageSampleCount );
    }
    
    
    /**
     * SWFTagTypes interface
     */
    public void tagSoundStreamBlock( byte[] soundData ) throws IOException
    {
        println( "sound-stream-block" );
        
        if( dumpHex )
        {
            Hex.dump( writer, soundData, 0L, indent + "    ", false );
            println( dashes );
        }        
    }    
    
    /**
     * SWFTagTypes interface
     */
    public void tagSerialNumber( String serialNumber ) throws IOException
    {
        println( "serial number =" + serialNumber );       
    }    
                                                              
    
    /**
     * SWFTagTypes interface
     */
    public void tagGenerator( byte[] data ) throws IOException
    {
        println( "generator tag" );
        
        if( dumpHex )
        {
            Hex.dump( writer, data, 0L, indent + "    ", false );
            println( dashes );
        }        
    }       
    
    /**
     * SWFTagTypes interface
     */
    public void tagGeneratorText( byte[] data ) throws IOException
    {
        println( "generator text" );
        
        if( dumpHex )
        {
            Hex.dump( writer, data, 0L, indent + "    ", false );
            println( dashes );
        }        
    }        
    
    /**
     * SWFTagTypes interface
     */
    public void tagGeneratorFont( byte[] data ) throws IOException
    {
        println( "generator font" );
        
        if( dumpHex )
        {
            Hex.dump( writer, data, 0L, indent + "    ", false );
            println( dashes );
        }        
    }    
    
    /**
     * SWFTagTypes interface
     */
    public void tagGeneratorCommand( byte[] data ) throws IOException
    {
        println( "generator command" );
        
        if( dumpHex )
        {
            Hex.dump( writer, data, 0L, indent + "    ", false );
            println( dashes );
        }        
    }            

    /**
     * SWFTagTypes interface
     */
    public void tagNameCharacter( byte[] data ) throws IOException
    {
        println( "generator name character" );
        
        if( dumpHex )
        {
            Hex.dump( writer, data, 0L, indent + "    ", false );
            println( dashes );
        }        
    }                
    
    /**
     * SWFTagTypes interface
     */
    public void tagDefineBits( int id, byte[] imageData ) throws IOException
    {
        println( "jpeg bits" );
        
        if( dumpHex )
        {
            Hex.dump( writer, imageData, 0L, indent + "    ", false );
            println( dashes );
        }        
    }            
    
    /**
     * SWFTagTypes interface
     */
    public void tagJPEGTables( byte[] jpegEncodingData ) throws IOException
    {
        println( "jpeg encoding data" );
        
        if( dumpHex )
        {
            Hex.dump( writer, jpegEncodingData, 0L, indent + "    ", false );
            println( dashes );
        }        
    }                

    /**
     * SWFTagTypes interface
     */
    public void tagDefineBitsJPEG3( int id, byte[] imageData, byte[] alphaData ) throws IOException
    {
        println( "jpeg with alpha" );
        

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
日韩欧美高清一区| 欧美三级视频在线观看| 一片黄亚洲嫩模| 精品国产污污免费网站入口 | 国产区在线观看成人精品| 色综合天天做天天爱| 精一区二区三区| 日韩国产精品久久| 夜夜亚洲天天久久| 成人免费视频在线观看| 精品国产亚洲在线| 欧美性猛交一区二区三区精品| 极品少妇xxxx精品少妇偷拍| 亚洲一二三四在线| 成人欧美一区二区三区小说| 国产亚洲一本大道中文在线| 日韩一区二区三区视频在线| 欧美亚洲另类激情小说| av资源网一区| 丁香婷婷综合网| 国产精品一区在线| 久久99久久久久久久久久久| 丝袜a∨在线一区二区三区不卡| 中文字幕一区二区三区蜜月 | 国产精品欧美久久久久一区二区| 精品第一国产综合精品aⅴ| 日韩欧美电影一区| 51精品国自产在线| 精品久久久久久无| 亚洲精品在线免费观看视频| 久久色在线观看| 国产欧美一区二区精品久导航| 国产欧美日韩精品在线| 国产精品沙发午睡系列990531| 中文字幕精品—区二区四季| 亚洲天堂福利av| 天堂精品中文字幕在线| 久久精品国产秦先生| 国产高清在线观看免费不卡| 色综合久久久久久久久| 欧美美女视频在线观看| 欧美成人综合网站| 亚洲三级在线播放| 精品在线播放免费| 成人h动漫精品一区二区| 欧美精品aⅴ在线视频| 亚洲国产精品国自产拍av| 一区二区三区色| 韩国三级电影一区二区| 欧美日韩电影在线| 亚洲国产精品激情在线观看| 偷偷要91色婷婷| 91亚洲国产成人精品一区二区三| 欧美影视一区二区三区| 欧美精品一区二区三区在线| 一区二区三区欧美日韩| 国产 欧美在线| 日韩精品一区二区三区中文精品| 国产精品久久久久久亚洲毛片 | 国产一区二区久久| 日本道色综合久久| 国产精品久久久久一区二区三区 | 亚洲精品乱码久久久久久黑人| 久久99久久99| 日韩一区二区精品| 偷拍日韩校园综合在线| 91网上在线视频| 夜夜爽夜夜爽精品视频| 成人精品在线视频观看| 日韩午夜在线影院| 蜜臀久久99精品久久久久久9| 欧美怡红院视频| 亚洲高清不卡在线| 欧美性高清videossexo| 亚洲精品成人在线| 色乱码一区二区三区88| 亚洲视频在线一区| 欧美日韩第一区日日骚| 日本va欧美va欧美va精品| 欧美一级理论片| 麻豆国产欧美一区二区三区| 精品国偷自产国产一区| 蜜臀99久久精品久久久久久软件| 精品在线播放免费| 亚洲一区免费视频| 在线观看日韩毛片| 免费成人av资源网| 欧美精品一区二区不卡 | 日韩欧美国产一区二区在线播放| 午夜精品一区二区三区三上悠亚| 56国语精品自产拍在线观看| 奇米综合一区二区三区精品视频| av不卡免费在线观看| 国产一区二区美女| 国产麻豆精品在线观看| 一区二区三区视频在线看| 亚洲图片自拍偷拍| 久久亚洲精品小早川怜子| 不卡欧美aaaaa| 精品写真视频在线观看| 国产精品免费久久久久| 7777精品伊人久久久大香线蕉| 日韩av不卡在线观看| 欧美mv日韩mv国产| 91在线国内视频| 久久精品免费看| 午夜精品福利一区二区三区av| 欧美成人aa大片| 欧美日韩在线三级| av亚洲精华国产精华精| 激情小说亚洲一区| 首页国产丝袜综合| 亚洲精品视频在线看| 日本一区二区免费在线| 91精品在线免费观看| 欧美少妇bbb| 91久久精品网| 色狠狠综合天天综合综合| 暴力调教一区二区三区| 国产成人免费视频网站| 国产呦萝稀缺另类资源| 蜜臀国产一区二区三区在线播放| 亚洲国产成人高清精品| 亚洲va欧美va国产va天堂影院| 欧美激情一区二区三区蜜桃视频| 国产色91在线| 中文字幕高清一区| 日韩毛片在线免费观看| 亚洲黄色小视频| 一区二区三区四区国产精品| 亚洲美女电影在线| 亚洲综合清纯丝袜自拍| 亚洲午夜激情网站| 美女诱惑一区二区| 国产成人精品亚洲日本在线桃色| 成人午夜av影视| 欧美少妇xxx| 欧美精品一区二| 国产精品毛片久久久久久| 亚洲在线视频免费观看| 日本中文字幕不卡| 成人一区在线观看| 欧美三级电影网站| 久久久久国产精品免费免费搜索| 国产精品久久精品日日| 午夜精品国产更新| 成人午夜视频福利| 欧美撒尿777hd撒尿| 国产午夜亚洲精品理论片色戒| 亚洲女人****多毛耸耸8| 成人免费高清视频| 欧美日韩国产首页在线观看| 国产欧美一区二区精品婷婷| 午夜精品福利在线| 91久久精品一区二区三| 欧美一区二区不卡视频| 一区二区三区在线视频免费 | 欧美丰满嫩嫩电影| 亚洲欧美日韩综合aⅴ视频| 国产一区美女在线| 3atv在线一区二区三区| 亚洲另类色综合网站| 国产精品一区二区视频| 欧美一级欧美一级在线播放| 一区二区在线免费观看| 成人国产亚洲欧美成人综合网| 日韩欧美精品在线| 日韩黄色免费电影| 91精品欧美福利在线观看 | 亚洲综合一区二区| 99免费精品在线观看| 久久久久久久久99精品| 国产一区二区日韩精品| 精品国精品国产| 国产美女精品人人做人人爽| 日韩视频中午一区| 蜜桃av一区二区在线观看| 日韩一区二区在线看| 久久国产精品72免费观看| 欧美大片一区二区三区| 国产精品综合网| 国产欧美日韩在线| 成熟亚洲日本毛茸茸凸凹| 欧美激情一区二区三区四区 | 高清不卡在线观看| 国产精品家庭影院| 91麻豆精品视频| 偷拍亚洲欧洲综合| 26uuuu精品一区二区| 国产成人在线免费观看| 亚洲精品一二三区| 欧美高清视频在线高清观看mv色露露十八 | 欧美国产日韩精品免费观看| caoporen国产精品视频| 亚洲成人免费av| 久久综合久久综合久久| 日本韩国一区二区三区| 久久精品国产99国产| 亚洲欧美韩国综合色| 精品日韩欧美在线|