一个小例子:
SWFHeader header = new SWFHeader("G:\\mplayer\\test.swf");
System.out.println("signature: " + header.getSignature());
System.out.println("version: " + header.getVersion());
System.out.println("compression: " + header.getCompressionType());
System.out.println("size: " + header.getSize());
System.out.println("nbits: " + header.getNbits());
System.out.println("xmax: " + header.getXmax());
System.out.println("ymax: " + header.getYmax());
System.out.println("width: " + header.getWidth());
System.out.println("height: " + header.getHeight());
System.out.println("frameRate: " + header.getFrameRate());
System.out.println("frameCount: " + header.getFrameCount());
System.out.println("signature: " + header.getSignature());
System.out.println("version: " + header.getVersion());
System.out.println("compression: " + header.getCompressionType());
System.out.println("size: " + header.getSize());
System.out.println("nbits: " + header.getNbits());
System.out.println("xmax: " + header.getXmax());
System.out.println("ymax: " + header.getYmax());
System.out.println("width: " + header.getWidth());
System.out.println("height: " + header.getHeight());
System.out.println("frameRate: " + header.getFrameRate());
System.out.println("frameCount: " + header.getFrameCount());
压缩、解压缩,需要注意生成的文件将覆盖原文件:
//压缩
SWFCompressor compressor=new SWFCompressor("G:\\mplayer\\test.swf");
//解压缩
SWFDecompressor decompressor=new SWFDecompressor("G:\\mplayer\\test.swf");
SWFCompressor compressor=new SWFCompressor("G:\\mplayer\\test.swf");
//解压缩
SWFDecompressor decompressor=new SWFDecompressor("G:\\mplayer\\test.swf");
文章转自庄周梦蝶 ,原文发布时间 2008-01-04