org.apache.poi.hslf.blip
Class WMF.NativeHeader

java.lang.Object
  extended by org.apache.poi.hslf.blip.WMF.NativeHeader
Enclosing class:
WMF

public static class WMF.NativeHeader
extends java.lang.Object

Aldus Placeable Metafile header - 22 byte structure before WMF data.


Field Summary
static int APMHEADER_KEY
           
 
Constructor Summary
WMF.NativeHeader(byte[] data, int pos)
           
WMF.NativeHeader(java.awt.Rectangle dim)
           
 
Method Summary
 int getChecksum()
          Returns a checksum value for the previous 10 shorts in the header.
 int getLength()
           
 java.awt.Dimension getSize()
           
 void write(java.io.OutputStream out)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

APMHEADER_KEY

public static final int APMHEADER_KEY
See Also:
Constant Field Values
Constructor Detail

WMF.NativeHeader

public WMF.NativeHeader(java.awt.Rectangle dim)

WMF.NativeHeader

public WMF.NativeHeader(byte[] data,
                        int pos)
Method Detail

getChecksum

public int getChecksum()
Returns a checksum value for the previous 10 shorts in the header. The checksum is calculated by XORing each short value to an initial value of 0:


write

public void write(java.io.OutputStream out)
           throws java.io.IOException
Throws:
java.io.IOException

getSize

public java.awt.Dimension getSize()

getLength

public int getLength()


Copyright 2016 The Apache Software Foundation or its licensors, as applicable.