Class WMFWriter


  • class WMFWriter
    extends java.lang.Object
    A Windows MetaFile writer.
    Version:
    $Id$
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      (package private) static class  WMFWriter.Dib
      DIB data structure.
      (package private) static class  WMFWriter.DibBitBltRecord  
      (package private) static class  WMFWriter.Record
      Standard data record.
    • Constructor Summary

      Constructors 
      Constructor Description
      WMFWriter()  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      (package private) void add​(WMFWriter.Record record)  
      (package private) static void print​(byte[] buf, int off, int len, java.io.Writer out)  
      (package private) static void print​(byte[] buf, int off, int len, java.io.Writer out, int lw)  
      (package private) void print​(java.io.Writer out)  
      (package private) static void print16​(int word, java.io.Writer out)  
      (package private) static void print32​(int dword, java.io.Writer out)  
      (package private) int size()  
      (package private) void write​(java.io.OutputStream out)  
      (package private) void write​(java.lang.String fileName)  
      (package private) static void write16​(int word, java.io.OutputStream out)
      Writes a 16-bit integer in little-endian format.
      (package private) static void write32​(int dword, java.io.OutputStream out)
      Writes a 32-bit integer in little-endian format.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • trailer

        private static WMFWriter.Record trailer
        See the libwmf library documentation (http://www.wvware.com/wmf_doc_index.html) for a description of WMF format.
      • fileType

        private short fileType
        standard header fields
      • headerSize

        private short headerSize
      • version

        private short version
      • fileSize

        private int fileSize
      • numOfObjects

        private short numOfObjects
      • maxRecordSize

        private int maxRecordSize
      • numOfParams

        private short numOfParams
      • records

        private java.util.Vector records
    • Constructor Detail

      • WMFWriter

        WMFWriter()
    • Method Detail

      • size

        int size()
      • write

        void write​(java.lang.String fileName)
            throws java.io.IOException
        Throws:
        java.io.IOException
      • write

        void write​(java.io.OutputStream out)
            throws java.io.IOException
        Throws:
        java.io.IOException
      • write16

        static void write16​(int word,
                            java.io.OutputStream out)
                     throws java.io.IOException
        Writes a 16-bit integer in little-endian format.
        Throws:
        java.io.IOException
      • write32

        static void write32​(int dword,
                            java.io.OutputStream out)
                     throws java.io.IOException
        Writes a 32-bit integer in little-endian format.
        Throws:
        java.io.IOException
      • print

        void print​(java.io.Writer out)
            throws java.io.IOException
        Throws:
        java.io.IOException
      • print16

        static void print16​(int word,
                            java.io.Writer out)
                     throws java.io.IOException
        Throws:
        java.io.IOException
      • print32

        static void print32​(int dword,
                            java.io.Writer out)
                     throws java.io.IOException
        Throws:
        java.io.IOException
      • print

        static void print​(byte[] buf,
                          int off,
                          int len,
                          java.io.Writer out)
                   throws java.io.IOException
        Throws:
        java.io.IOException
      • print

        static void print​(byte[] buf,
                          int off,
                          int len,
                          java.io.Writer out,
                          int lw)
                   throws java.io.IOException
        Throws:
        java.io.IOException