org.freehep.graphicsio.emf
Class EMFOutputStream

java.lang.Object
  extended by java.io.OutputStream
      extended by java.io.FilterOutputStream
          extended by org.freehep.util.io.CompressableOutputStream
              extended by org.freehep.util.io.BitOutputStream
                  extended by org.freehep.util.io.ByteOrderOutputStream
                      extended by org.freehep.util.io.ByteCountOutputStream
                          extended by org.freehep.util.io.TaggedOutputStream
                              extended by 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

Field Summary
 
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)
           
 
Method Summary
 void close()
           
protected  int getTagAlignment()
           
 int getVersion()
           
protected  void writeActionHeader(org.freehep.util.io.ActionHeader header)
           
 void writeBYTE(boolean b)
           
 void writeBYTE(byte b)
           
 void writeBYTE(byte[] b)
           
 void writeBYTE(int b)
           
 void writeCOLOR16(java.awt.Color c)
           
 void writeCOLORREF(java.awt.Color c)
           
 void writeDWORD(boolean b)
           
 void writeDWORD(int i)
           
 void writeDWORD(int[] w)
           
 void writeFLOAT(float f)
           
 void writeHeader(EMFHeader header)
           
 void writeLONG(int i)
           
 void writePOINTL(int n, java.awt.Point[] p)
           
 void writePOINTL(java.awt.Point p)
           
 void writePOINTL(java.awt.Point[] p)
           
 void writePOINTS(int n, java.awt.Point[] p)
           
 void writePOINTS(java.awt.Point p)
           
 void writePOINTS(java.awt.Point[] p)
           
 void writeRECTL(java.awt.Rectangle r)
           
 void writeSHORT(short i)
           
 void writeSIZEL(java.awt.Dimension d)
           
 void writeTag(org.freehep.util.io.Tag tag)
           
protected  void writeTagHeader(org.freehep.util.io.TagHeader header)
           
 void writeUINT(int i)
           
 void writeULONG(int i)
           
 void writeWCHAR(java.lang.String s)
           
 void writeWCHAR(java.lang.String s, int size)
           
 void writeWORD(boolean b)
           
 void writeWORD(int s)
           
 void writeXFORM(java.awt.geom.AffineTransform t)
           
 
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
 

Constructor Detail

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
Method Detail

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.