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

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

public class WMF.AldusHeader
extends java.lang.Object

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


Field Summary
static int APMHEADER_KEY
           
 int bottom
           
 int checksum
           
 int handle
           
 int inch
           
 int left
           
 int reserved
           
 int right
           
 int top
           
 
Constructor Summary
WMF.AldusHeader()
           
 
Method Summary
 int getChecksum()
          Returns a checksum value for the previous 10 shorts in the header.
 int getSize()
           
 void read(byte[] data, int offset)
           
 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

handle

public int handle

left

public int left

top

public int top

right

public int right

bottom

public int bottom

inch

public int inch

reserved

public int reserved

checksum

public int checksum
Constructor Detail

WMF.AldusHeader

public WMF.AldusHeader()
Method Detail

read

public void read(byte[] data,
                 int offset)

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 int getSize()


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