1 50 51 package org.openlaszlo.iv.flash.parser; 52 53 import java.io.*; 54 55 import org.openlaszlo.iv.flash.api.*; 56 import org.openlaszlo.iv.flash.util.*; 57 58 public final class UnparsedTag extends FlashObject { 59 60 private DataMarker marker; 61 private int code; 62 63 public UnparsedTag() {} 64 65 public UnparsedTag( int code, byte[] buffer, int start, int end ) { 66 this.code = code; 67 this.marker = new DataMarker( buffer, start, end ); 68 } 69 70 public int getTag() { 72 return code; 73 } 74 75 public void write( FlashOutput fob ) { 76 marker.write( fob ); 77 } 78 79 public void printContent( PrintStream out, String indent ) { 80 super.printContent(out, indent); 81 Util.dump(marker.buffer, marker.start, marker.end-marker.start, out); 82 } 83 84 protected FlashItem copyInto( FlashItem item, ScriptCopier copier ) { 85 super.copyInto( item, copier ); 86 ((UnparsedTag)item).marker = marker.getCopy(); 87 ((UnparsedTag)item).code = code; 88 return item; 89 } 90 public FlashItem getCopy( ScriptCopier copier ) { 91 return copyInto( new UnparsedTag(), copier ); 92 } 93 94 } 95 | Popular Tags |