org.freehep.graphicsio.emf
Class EMFOutputStream
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.emf.EMFOutputStream
- All Implemented Interfaces:
- java.io.Closeable, java.io.DataOutput, java.io.Flushable, org.freehep.util.io.FinishableOutputStream, org.freehep.util.io.TaggedOutput
public class EMFOutputStream
- extends org.freehep.util.io.TaggedOutputStream
EMF Binary Output Stream. Tags written with this OutputStream will produce a
binary EMF file.
- Version:
- $Id: EMFOutputStream.java 8584 2006-08-10 23:06:37Z duns $
- Author:
- Mark Donszelmann
Fields inherited from class org.freehep.util.io.TaggedOutputStream |
actionSet, tagSet |
Fields inherited from class org.freehep.util.io.ByteOrderOutputStream |
little, written |
Fields inherited from class java.io.FilterOutputStream |
out |
Constructor Summary |
EMFOutputStream(java.io.OutputStream os,
java.awt.Rectangle imageBounds,
EMFHandleManager handles,
java.lang.String application,
java.lang.String name,
java.awt.Dimension device)
|
EMFOutputStream(java.io.OutputStream os,
java.awt.Rectangle imageBounds,
EMFHandleManager handles,
java.lang.String application,
java.lang.String name,
java.awt.Dimension device,
int version)
|
Methods inherited from class org.freehep.util.io.TaggedOutputStream |
createTagHeader, writeAction |
Methods inherited from class org.freehep.util.io.ByteCountOutputStream |
append, getBufferLength, getLength, popBuffer, popBufferBytes, pushBuffer, write |
Methods inherited from class org.freehep.util.io.ByteOrderOutputStream |
size, writeAsciiZString, writeBoolean, writeByte, writeByte, writeBytes, writeChar, writeChars, writeDouble, writeFloat, writeInt, writeInt, writeLong, writeShort, writeShort, writeString, writeUnsignedByte, writeUnsignedByte, writeUnsignedInt, writeUnsignedInt, writeUnsignedShort, writeUnsignedShort, writeUTF, writeUTF |
Methods inherited from class org.freehep.util.io.BitOutputStream |
byteAlign, finish, flushByte, minBits, minBits, minBits, writeBitFlag, writeFBits, writeSBits, writeUBits |
Methods inherited from class org.freehep.util.io.CompressableOutputStream |
startCompressing, write |
Methods inherited from class java.io.FilterOutputStream |
flush, write |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface java.io.DataOutput |
write, write |
EMFOutputStream
public EMFOutputStream(java.io.OutputStream os,
java.awt.Rectangle imageBounds,
EMFHandleManager handles,
java.lang.String application,
java.lang.String name,
java.awt.Dimension device,
int version)
throws java.io.IOException
- Throws:
java.io.IOException
EMFOutputStream
public EMFOutputStream(java.io.OutputStream os,
java.awt.Rectangle imageBounds,
EMFHandleManager handles,
java.lang.String application,
java.lang.String name,
java.awt.Dimension device)
throws java.io.IOException
- Throws:
java.io.IOException
close
public void close()
throws java.io.IOException
- Specified by:
close
in interface java.io.Closeable
- Specified by:
close
in interface org.freehep.util.io.TaggedOutput
- Overrides:
close
in class org.freehep.util.io.ByteCountOutputStream
- Throws:
java.io.IOException
writeDWORD
public void writeDWORD(int i)
throws java.io.IOException
- Throws:
java.io.IOException
writeDWORD
public void writeDWORD(int[] w)
throws java.io.IOException
- Throws:
java.io.IOException
writeWORD
public void writeWORD(int s)
throws java.io.IOException
- Throws:
java.io.IOException
writeFLOAT
public void writeFLOAT(float f)
throws java.io.IOException
- Throws:
java.io.IOException
writeCOLORREF
public void writeCOLORREF(java.awt.Color c)
throws java.io.IOException
- Throws:
java.io.IOException
writeCOLOR16
public void writeCOLOR16(java.awt.Color c)
throws java.io.IOException
- Throws:
java.io.IOException
writeXFORM
public void writeXFORM(java.awt.geom.AffineTransform t)
throws java.io.IOException
- Throws:
java.io.IOException
writePOINTS
public void writePOINTS(java.awt.Point[] p)
throws java.io.IOException
- Throws:
java.io.IOException
writePOINTS
public void writePOINTS(int n,
java.awt.Point[] p)
throws java.io.IOException
- Throws:
java.io.IOException
writePOINTS
public void writePOINTS(java.awt.Point p)
throws java.io.IOException
- Throws:
java.io.IOException
writePOINTL
public void writePOINTL(java.awt.Point[] p)
throws java.io.IOException
- Throws:
java.io.IOException
writePOINTL
public void writePOINTL(int n,
java.awt.Point[] p)
throws java.io.IOException
- Throws:
java.io.IOException
writePOINTL
public void writePOINTL(java.awt.Point p)
throws java.io.IOException
- Throws:
java.io.IOException
writeRECTL
public void writeRECTL(java.awt.Rectangle r)
throws java.io.IOException
- Throws:
java.io.IOException
writeSIZEL
public void writeSIZEL(java.awt.Dimension d)
throws java.io.IOException
- Throws:
java.io.IOException
writeUINT
public void writeUINT(int i)
throws java.io.IOException
- Throws:
java.io.IOException
writeULONG
public void writeULONG(int i)
throws java.io.IOException
- Throws:
java.io.IOException
writeLONG
public void writeLONG(int i)
throws java.io.IOException
- Throws:
java.io.IOException
writeSHORT
public void writeSHORT(short i)
throws java.io.IOException
- Throws:
java.io.IOException
writeBYTE
public void writeBYTE(byte[] b)
throws java.io.IOException
- Throws:
java.io.IOException
writeBYTE
public void writeBYTE(byte b)
throws java.io.IOException
- Throws:
java.io.IOException
writeBYTE
public void writeBYTE(int b)
throws java.io.IOException
- Throws:
java.io.IOException
writeBYTE
public void writeBYTE(boolean b)
throws java.io.IOException
- Throws:
java.io.IOException
writeWORD
public void writeWORD(boolean b)
throws java.io.IOException
- Throws:
java.io.IOException
writeDWORD
public void writeDWORD(boolean b)
throws java.io.IOException
- Throws:
java.io.IOException
writeWCHAR
public void writeWCHAR(java.lang.String s)
throws java.io.IOException
- Throws:
java.io.IOException
writeWCHAR
public void writeWCHAR(java.lang.String s,
int size)
throws java.io.IOException
- Throws:
java.io.IOException
getTagAlignment
protected int getTagAlignment()
- Overrides:
getTagAlignment
in class org.freehep.util.io.TaggedOutputStream
writeTagHeader
protected void writeTagHeader(org.freehep.util.io.TagHeader header)
throws java.io.IOException
- Specified by:
writeTagHeader
in class org.freehep.util.io.TaggedOutputStream
- Throws:
java.io.IOException
writeTag
public void writeTag(org.freehep.util.io.Tag tag)
throws java.io.IOException
- Specified by:
writeTag
in interface org.freehep.util.io.TaggedOutput
- Overrides:
writeTag
in class org.freehep.util.io.TaggedOutputStream
- Throws:
java.io.IOException
writeActionHeader
protected void writeActionHeader(org.freehep.util.io.ActionHeader header)
throws java.io.IOException
- Specified by:
writeActionHeader
in class org.freehep.util.io.TaggedOutputStream
- Throws:
java.io.IOException
writeHeader
public void writeHeader(EMFHeader header)
throws java.io.IOException
- Throws:
java.io.IOException
getVersion
public int getVersion()
Copyright © 2000-2007 FreeHEP. All Rights Reserved.