org.freehep.graphicsio.swf
Class SWFOutputStream
java.lang.Object
|
+--java.io.OutputStream
|
+--java.io.FilterOutputStream
|
+--org.freehep.util.io.BitOutputStream
|
+--org.freehep.util.io.ByteOrderOutputStream
|
+--org.freehep.util.io.ByteCountOutputStream
|
+--org.freehep.util.io.TaggedOutputStream
|
+--org.freehep.graphicsio.swf.SWFOutputStream
- All Implemented Interfaces:
- DataOutput, FinishableOutputStream, SWFConstants, TaggedOutput
- public class SWFOutputStream
- extends TaggedOutputStream
- implements SWFConstants
This class extends the TaggedOutputStream with several methods
to write SWF primitives to the stream and to write TagHeaders.
- Version:
- $Id: SWFOutputStream.java,v 1.6 2002/08/28 22:44:05 duns Exp $
- Author:
- Mark Donszelmann, Charles Loomis
Methods inherited from class org.freehep.util.io.ByteOrderOutputStream |
size, writeAsciiZString, writeBoolean, writeByte, writeByte, writeBytes, writeChar, writeChars, writeDouble, writeFloat, writeInt, writeInt, writeLong, writeShort, writeShort, writeUnsignedByte, writeUnsignedByte, writeUnsignedInt, writeUnsignedInt, writeUnsignedShort, writeUnsignedShort, writeUTF, writeUTF |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SWFOutputStream
public SWFOutputStream(OutputStream os,
Dimension size,
float frameRate)
throws IOException
SWFOutputStream
public SWFOutputStream(OutputStream os,
int version,
Dimension size,
float frameRate)
throws IOException
SWFOutputStream
public SWFOutputStream(OutputStream os,
SWFTagSet tagSet,
SWFActionSet actionSet,
Dimension size,
float frameRate)
throws IOException
close
public void close()
throws IOException
- Description copied from class:
ByteCountOutputStream
- closes the stream, inserting any non-written header.
- Specified by:
close
in interface TaggedOutput
- Overrides:
close
in class ByteCountOutputStream
IOException
writeTag
public void writeTag(ShowFrame tag)
throws IOException
IOException
writeFixed
public void writeFixed(double d)
throws IOException
IOException
writeRect
public void writeRect(Rectangle2D rect)
throws IOException
IOException
writeRect
public void writeRect(Rectangle2D rect,
int nbits)
throws IOException
IOException
writeColor
public void writeColor(Color color,
boolean alpha)
throws IOException
IOException
writeMatrix
public void writeMatrix(AffineTransform matrix)
throws IOException
IOException
writeString
public void writeString(String s)
throws IOException
- Overrides:
writeString
in class ByteOrderOutputStream
IOException
writeTagHeader
protected void writeTagHeader(TagHeader tagHeader)
throws IOException
- Description copied from class:
TaggedOutputStream
- Writes the TagHeader, which includes a TagID and a length
- Specified by:
writeTagHeader
in class TaggedOutputStream
IOException
writeActionHeader
protected void writeActionHeader(ActionHeader header)
throws IOException
- Description copied from class:
TaggedOutputStream
- Writes the ActionHeader, which includes an actionCode and a length
- Specified by:
writeActionHeader
in class TaggedOutputStream
IOException
writeHeader
public void writeHeader(SWFHeader header)
throws IOException
IOException
getVersion
public int getVersion()
Copyright © 2000-2002 FreeHEP, All Rights Reserved.