sventon subversion web client - http://www.sventon.org
[show recent changes]
 
  Help
HEAD
Rev: 10305 - svn://svn.freehep.org/svn / freehep / branches / vectorgraphics-emfplus / freehep-graphicsio-emf / src / main / java / org / freehep / graphicsio / emf / EMFInputStream.java
Unified Diff View - EMFInputStream.java
Search for Help
/freehep/branches/vectorgraphics-emfplus/freehep-graphicsio-emf/src/main/java/org/freehep/graphicsio/emf/EMFInputStream.java @ revision 10304
/freehep/branches/vectorgraphics-emfplus/freehep-graphicsio-emf/src/main/java/org/freehep/graphicsio/emf/EMFInputStream.java @ revision 10305
@@ -18,7 +18,7 @@  * primitives from the stream and to read TagHeaders.  *  * @author Mark Donszelmann - * @version $Id: EMFInputStream.java 10188 2006-12-11 20:26:14Z duns $ + * @version $Id: EMFInputStream.java 10305 2007-01-12 23:43:03Z duns $  */ public class EMFInputStream extends TaggedInputStream implements EMFConstants { @@ -93,7 +93,7 @@                 readShort() >> 8);     } - public Color readCOLOR() { + public Color readCOLOR() throws IOException {   int b = readUnsignedByte();   int g = readUnsignedByte();   int r = readUnsignedByte(); @@ -174,7 +174,7 @@         }         return new String(bytes, 0, length, "UTF-16LE");     } - +     protected TagHeader readTagHeader() throws IOException {         // Read the tag.         // byteAlign(); @@ -184,11 +184,11 @@             return null;         tagID |= readUnsignedByte() << 8; -        tagID |= readUnsignedByte() << 16; -        tagID |= readUnsignedByte() << 24; - +        int flags = readUnsignedByte(); +        flags |= readUnsignedByte() << 8; +         long length = readDWORD(); -        return new TagHeader(tagID, length - 8); +        return new EMFTagHeader(tagID, length - 8, flags);     }     protected ActionHeader readActionHeader() throws IOException {


feed icon

sventon 2.5.1