Debian Codegraph @

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

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