Class WMFWriter
- java.lang.Object
-
- org.apache.maven.doxia.module.rtf.WMFWriter
-
class WMFWriter extends java.lang.ObjectA Windows MetaFile writer.- Version:
- $Id$
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) static classWMFWriter.DibDIB data structure.(package private) static classWMFWriter.DibBitBltRecord(package private) static classWMFWriter.RecordStandard data record.
-
Field Summary
Fields Modifier and Type Field Description private intfileSizeprivate shortfileTypestandard header fieldsprivate shortheaderSizeprivate intmaxRecordSizeprivate shortnumOfObjectsprivate shortnumOfParamsprivate java.util.Vectorrecordsprivate static WMFWriter.RecordtrailerSee the libwmf library documentation (http://www.wvware.com/wmf_doc_index.html) for a description of WMF format.private shortversion
-
Constructor Summary
Constructors Constructor Description WMFWriter()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) voidadd(WMFWriter.Record record)(package private) static voidprint(byte[] buf, int off, int len, java.io.Writer out)(package private) static voidprint(byte[] buf, int off, int len, java.io.Writer out, int lw)(package private) voidprint(java.io.Writer out)(package private) static voidprint16(int word, java.io.Writer out)(package private) static voidprint32(int dword, java.io.Writer out)(package private) intsize()(package private) voidwrite(java.io.OutputStream out)(package private) voidwrite(java.lang.String fileName)(package private) static voidwrite16(int word, java.io.OutputStream out)Writes a 16-bit integer in little-endian format.(package private) static voidwrite32(int dword, java.io.OutputStream out)Writes a 32-bit integer in little-endian format.
-
-
-
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
-
-
Method Detail
-
add
void add(WMFWriter.Record record)
-
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.IOExceptionWrites 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.IOExceptionWrites 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
-
-