Debian Codegraph @

freehep-graphicsio-swf/src/main/java/org/freehep/graphicsio/swf/RemoveObject.java

raw symbols SCIP
1 // Copyright 2001, FreeHEP.
2 package org.freehep.graphicsio.swf;
3
4 import java.io.IOException;
5
6 /**
7 * RemoveObject TAG.
8 *
9 * @author Mark Donszelmann
10 * @author Charles Loomis
11 * @version $Id: freehep-graphicsio-swf/src/main/java/org/freehep/graphicsio/swf/RemoveObject.java db861da05344 2005/12/05 00:59:43 duns $
12 */
13 public class RemoveObject extends ControlTag {
14
15 private int depth;
16
17 private int character;
18
19 public RemoveObject(int depth, int id) {
20 this();
21 this.depth = depth;
22 character = id;
23 }
24
25 public RemoveObject() {
26 super(5, 1);
27 }
28
29 public SWFTag read(int tagID, SWFInputStream swf, int len)
30 throws IOException {
31 RemoveObject tag = new RemoveObject();
32 tag.character = swf.readUnsignedShort();
33 tag.depth = swf.readUnsignedShort();
34 return tag;
35 }
36
37 public void write(int tagID, SWFOutputStream swf) throws IOException {
38 swf.writeUnsignedShort(character);
39 swf.writeUnsignedShort(depth);
40 }
41
42 public String toString() {
43 return super.toString() + "\n" + " depth: " + depth + "\n"
44 + " character: " + character;
45 }
46
47 }