Debian Codegraph @

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

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