View Javadoc

1   // Copyright 2001, FreeHEP.
2   package org.freehep.graphicsio.swf;
3   
4   import java.io.IOException;
5   
6   /**
7    * DefineVideoStream TAG.
8    * 
9    * @author Mark Donszelmann
10   * @author Charles Loomis
11   * @version $Id: DefineVideoStream.java 8584 2006-08-10 23:06:37Z duns $
12   */
13  public class DefineVideoStream extends DefinitionTag {
14  
15      private byte[] data;
16  
17      public DefineVideoStream() {
18          super(60, 6);
19      }
20  
21      public SWFTag read(int tagID, SWFInputStream swf, int len)
22              throws IOException {
23  
24          DefineVideoStream tag = new DefineVideoStream();
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  }