org.freehep.graphicsio.emf
Class EMFInputStream
java.lang.Object
java.io.InputStream
org.freehep.util.io.DecompressableInputStream
org.freehep.util.io.BitInputStream
org.freehep.util.io.ByteOrderInputStream
org.freehep.util.io.ByteCountInputStream
org.freehep.util.io.TaggedInputStream
org.freehep.graphicsio.emf.EMFInputStream
- All Implemented Interfaces:
- java.io.Closeable, java.io.DataInput, EMFConstants
public class EMFInputStream
- extends org.freehep.util.io.TaggedInputStream
- implements EMFConstants
This class extends the TaggedInputStream with several methods to read EMF
primitives from the stream and to read TagHeaders.
- Version:
- $Id: EMFInputStream.java 10367 2007-01-22 19:26:48Z duns $
- Author:
- Mark Donszelmann
Fields inherited from class org.freehep.util.io.TaggedInputStream |
actionSet, tagSet |
Fields inherited from class org.freehep.util.io.ByteOrderInputStream |
little |
Fields inherited from class org.freehep.util.io.BitInputStream |
BIT_MASK, FIELD_MASK, MASK_SIZE, ONES, ZERO |
Fields inherited from interface org.freehep.graphicsio.emf.EMFConstants |
AC_SRC_ALPHA, AC_SRC_OVER, AD_CLOCKWISE, AD_COUNTERCLOCKWISE, ALTERNATE, BI_BITFIELDS, BI_JPEG, BI_PNG, BI_RGB, BI_RLE4, BI_RLE8, BKG_OPAQUE, BKG_TRANSPARENT, BLACKONWHITE, BS_DIBPATTERN, BS_DIBPATTERN8X8, BS_DIBPATTERNPT, BS_HATCHED, BS_HOLLOW, BS_INDEXED, BS_MONOPATTERN, BS_NULL, BS_PATTERN, BS_PATTERN8X8, BS_SOLID, COLORONCOLOR, DIB_PAL_COLORS, DIB_RGB_COLORS, ETO_CLIPPED, ETO_GLYPH_INDEX, ETO_IGNORELANGUAGE, ETO_NUMERICSLATIN, ETO_NUMERICSLOCAL, ETO_OPAQUE, ETO_PDY, ETO_RTLREADING, FLOODFILLBORDER, FLOODFILLSURFACE, FW_BOLD, FW_DONTCARE, FW_EXTRABOLD, FW_EXTRALIGHT, FW_HEAVY, FW_LIGHT, FW_MEDIUM, FW_NORMAL, FW_SEMIBOLD, FW_THIN, GDICOMMENT_BEGINGROUP, GDICOMMENT_ENDGROUP, GDICOMMENT_IDENTIFIER, GDICOMMENT_MULTIFORMATS, GDICOMMENT_UNICODE_END, GDICOMMENT_UNICODE_STRING, GDICOMMENT_WINDOWS_METAFILE, GM_ADVANCED, GM_COMPATIBLE, GRADIENT_FILL_RECT_H, GRADIENT_FILL_RECT_V, GRADIENT_FILL_TRIANGLE, HALFTONE, HS_BDIAGONAL, HS_CROSS, HS_DIAGCROSS, HS_FDIAGONAL, HS_HORIZONTAL, HS_VERTICAL, ICM_DONE_OUTSIDEDC, ICM_OFF, ICM_ON, ICM_QUERY, MM_ANISOTROPIC, MM_HIENGLISH, MM_HIMETRIC, MM_ISOTROPIC, MM_LOENGLISH, MM_LOMETRIC, MM_TEXT, MM_TWIPS, MWT_IDENTITY, MWT_LEFTMULTIPLY, MWT_RIGHTMULTIPLY, PAN_ANY, PAN_NO_FIT, PS_COSMETIC, PS_DASH, PS_DASHDOT, PS_DASHDOTDOT, PS_DOT, PS_ENDCAP_FLAT, PS_ENDCAP_ROUND, PS_ENDCAP_SQUARE, PS_GEOMETRIC, PS_INSIDEFRAME, PS_JOIN_BEVEL, PS_JOIN_MITER, PS_JOIN_ROUND, PS_NULL, PS_SOLID, PS_USERSTYLE, PT_BEZIERTO, PT_CLOSEFIGURE, PT_LINETO, PT_MOVETO, R2_BLACK, R2_COPYPEN, R2_MASKNOTPEN, R2_MASKPEN, R2_MASKPENNOT, R2_MERGENOTPEN, R2_MERGEPEN, R2_MERGEPENNOT, R2_NOP, R2_NOT, R2_NOTCOPYPEN, R2_NOTMASKPEN, R2_NOTMERGEPEN, R2_NOTXORPEN, R2_WHITE, R2_XORPEN, RGN_AND, RGN_COPY, RGN_DIFF, RGN_MAX, RGN_MIN, RGN_OR, RGN_XOR, SRCCOPY, STRETCH_ANDSCANS, STRETCH_DELETESCANS, STRETCH_HALFTONE, STRETCH_ORSCANS, TA_BASELINE, TA_BOTTOM, TA_CENTER, TA_LEFT, TA_NOUPDATECP, TA_RIGHT, TA_RTLREADING, TA_TOP, TA_UPDATECP, TWIPS, UNITS_PER_PIXEL, WHITEONBLACK, WINDING |
Methods inherited from class org.freehep.util.io.TaggedInputStream |
addAction, addTag, getTagHeader, readAction, readTag |
Methods inherited from class org.freehep.util.io.ByteCountInputStream |
getLength, popBuffer, pushBuffer, read |
Methods inherited from class org.freehep.util.io.ByteOrderInputStream |
readAsciiZString, readBoolean, readByte, readByte, readChar, readDouble, readFloat, readFully, readFully, readInt, readInt, readLine, readLong, readShort, readShort, readString, readUnsignedByte, readUnsignedByte, readUnsignedInt, readUnsignedInt, readUnsignedShort, readUnsignedShort, readUTF, skipBytes |
Methods inherited from class org.freehep.util.io.BitInputStream |
byteAlign, fetchByte, readBitFlag, readFBits, readSBits, readUBits |
Methods inherited from class org.freehep.util.io.DecompressableInputStream |
skip, startDecompressing |
Methods inherited from class java.io.InputStream |
available, close, mark, markSupported, read, read, reset |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DEFAULT_VERSION
public static int DEFAULT_VERSION
EMFInputStream
public EMFInputStream(java.io.InputStream is)
EMFInputStream
public EMFInputStream(java.io.InputStream is,
int version)
EMFInputStream
public EMFInputStream(java.io.InputStream is,
EMFTagSet tagSet)
readDWORD
public int readDWORD()
throws java.io.IOException
- Throws:
java.io.IOException
readDWORD
public int[] readDWORD(int size)
throws java.io.IOException
- Throws:
java.io.IOException
readWORD
public int readWORD()
throws java.io.IOException
- Throws:
java.io.IOException
readLONG
public int readLONG()
throws java.io.IOException
- Throws:
java.io.IOException
readLONG
public int[] readLONG(int size)
throws java.io.IOException
- Throws:
java.io.IOException
readFLOAT
public float readFLOAT()
throws java.io.IOException
- Throws:
java.io.IOException
readUINT
public int readUINT()
throws java.io.IOException
- Throws:
java.io.IOException
readULONG
public int readULONG()
throws java.io.IOException
- Throws:
java.io.IOException
readCOLORREF
public java.awt.Color readCOLORREF()
throws java.io.IOException
- Throws:
java.io.IOException
readCOLOR16
public java.awt.Color readCOLOR16()
throws java.io.IOException
- Throws:
java.io.IOException
readXFORM
public java.awt.geom.AffineTransform readXFORM()
throws java.io.IOException
- Throws:
java.io.IOException
readRECTL
public java.awt.Rectangle readRECTL()
throws java.io.IOException
- Throws:
java.io.IOException
readPOINTL
public java.awt.Point readPOINTL()
throws java.io.IOException
- Throws:
java.io.IOException
readPOINTL
public java.awt.Point[] readPOINTL(int size)
throws java.io.IOException
- Throws:
java.io.IOException
readPOINTS
public java.awt.Point readPOINTS()
throws java.io.IOException
- Throws:
java.io.IOException
readPOINTS
public java.awt.Point[] readPOINTS(int size)
throws java.io.IOException
- Throws:
java.io.IOException
readSIZEL
public java.awt.Dimension readSIZEL()
throws java.io.IOException
- Throws:
java.io.IOException
readBYTE
public int readBYTE()
throws java.io.IOException
- Throws:
java.io.IOException
readBYTE
public byte[] readBYTE(int size)
throws java.io.IOException
- Throws:
java.io.IOException
readBOOLEAN
public boolean readBOOLEAN()
throws java.io.IOException
- Throws:
java.io.IOException
readWCHAR
public java.lang.String readWCHAR(int size)
throws java.io.IOException
- Throws:
java.io.IOException
readTagHeader
protected org.freehep.util.io.TagHeader readTagHeader()
throws java.io.IOException
- Specified by:
readTagHeader
in class org.freehep.util.io.TaggedInputStream
- Throws:
java.io.IOException
readActionHeader
protected org.freehep.util.io.ActionHeader readActionHeader()
throws java.io.IOException
- Specified by:
readActionHeader
in class org.freehep.util.io.TaggedInputStream
- Throws:
java.io.IOException
readHeader
public EMFHeader readHeader()
throws java.io.IOException
- Throws:
java.io.IOException
getVersion
public int getVersion()
Copyright © 2000-2007 FreeHEP. All Rights Reserved.