org.freehep.graphicsio.cgm
Class CGMOutputStream
java.lang.Object
|
+--java.io.OutputStream
|
+--java.io.FilterOutputStream
|
+--org.freehep.util.io.CompressableOutputStream
|
+--org.freehep.util.io.BitOutputStream
|
+--org.freehep.util.io.ByteOrderOutputStream
|
+--org.freehep.util.io.ByteCountOutputStream
|
+--org.freehep.util.io.TaggedOutputStream
|
+--org.freehep.graphicsio.cgm.CGMOutputStream
- All Implemented Interfaces:
- DataOutput, FinishableOutputStream, TaggedOutput
- public class CGMOutputStream
- extends TaggedOutputStream
CGM Binary Output Stream. Tags written with this OutputStream will
produce a binary CGM file. The class also holds the state
for the various precisions, defaults, etc...
- Version:
- $Id: CGMOutputStream.java,v 1.5 2003/11/26 17:39:40 duns Exp $
- Author:
- Mark Donszelmann, Charles Loomis, Ian Graham - support for long commands through partitioning
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 |
CGMOutputStream
public CGMOutputStream(OutputStream os,
int version)
throws IOException
CGMOutputStream
public CGMOutputStream(OutputStream os)
throws IOException
writeFixedPoint
public void writeFixedPoint(double d)
throws IOException
IOException
writeFloatingPoint
public void writeFloatingPoint(double d)
throws IOException
IOException
writeColorIndex
public void writeColorIndex(int i)
throws IOException
IOException
writeColorComponent
public void writeColorComponent(int c)
throws IOException
IOException
writeColorDirect
public void writeColorDirect(Color c)
throws IOException
IOException
writeIntegerIndex
public void writeIntegerIndex(int i)
throws IOException
IOException
writeEnumerate
public void writeEnumerate(int i)
throws IOException
IOException
writeInteger
public void writeInteger(int i)
throws IOException
IOException
writeReal
public void writeReal(double r)
throws IOException
IOException
writeString
public void writeString(String s)
throws IOException
- Overrides:
writeString
in class ByteOrderOutputStream
IOException
writeData
public void writeData(byte[] data)
throws IOException
IOException
writeVDC
public void writeVDC(double d)
throws IOException
IOException
writePoint
public void writePoint(Point2D p)
throws IOException
IOException
writeColor
public void writeColor(Color c)
throws IOException
IOException
writeName
public void writeName(int name)
throws IOException
IOException
writeTagHeader
protected void writeTagHeader(TagHeader header)
throws IOException
- Description copied from class:
TaggedOutputStream
- Writes the TagHeader, which includes a TagID and a length
- Specified by:
writeTagHeader
in class TaggedOutputStream
IOException
writeTag
public void writeTag(Tag tag)
throws IOException
- Description copied from class:
TaggedOutputStream
- Write a tag.
- Specified by:
writeTag
in interface TaggedOutput
- Overrides:
writeTag
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
getVersion
public int getVersion()
Copyright © 2000-2003 FreeHEP, All Rights Reserved.