| 1 |
|
| 2 |
package org.freehep.graphicsio.swf; |
| 3 |
|
| 4 |
import java.io.IOException; |
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 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 |
} |