FreeHEP API
Version current

org.freehep.graphicsio.cgm
Class CGMInputStream

java.lang.Object
  extended byjava.io.InputStream
      extended byorg.freehep.util.io.DecompressableInputStream
          extended byorg.freehep.util.io.BitInputStream
              extended byorg.freehep.util.io.ByteOrderInputStream
                  extended byorg.freehep.util.io.ByteCountInputStream
                      extended byorg.freehep.util.io.TaggedInputStream
                          extended byorg.freehep.graphicsio.cgm.CGMInputStream
All Implemented Interfaces:
DataInput

public class CGMInputStream
extends TaggedInputStream

This class extends the TaggedInputStream with several methods to read TagHeaders. It is a dummy implementation at this time, and only used for tagID analysis.

Version:
$Id: CGMInputStream.java,v 1.1 2003/12/02 23:40:29 duns Exp $
Author:
Mark Donszelmann
Source Code:
CGMInputStream.java

Field Summary
static int DEFAULT_VERSION
           
 
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
 
Constructor Summary
CGMInputStream(InputStream is)
           
CGMInputStream(InputStream is, CGMTagSet tagSet)
           
CGMInputStream(InputStream is, int version)
           
 
Method Summary
 int getVersion()
           
protected  ActionHeader readActionHeader()
          Decodes and returns the ActionHeader, which includes an actionCode and a length
protected  TagHeader readTagHeader()
          Decodes and returns the TagHeader, which includes a TagID and a length
 
Methods inherited from class org.freehep.util.io.TaggedInputStream
addAction, addTag, 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
 

Field Detail

DEFAULT_VERSION

public static int DEFAULT_VERSION
Constructor Detail

CGMInputStream

public CGMInputStream(InputStream is)
               throws IOException

CGMInputStream

public CGMInputStream(InputStream is,
                      int version)
               throws IOException

CGMInputStream

public CGMInputStream(InputStream is,
                      CGMTagSet tagSet)
               throws IOException
Method Detail

readTagHeader

protected TagHeader readTagHeader()
                           throws IOException
Description copied from class: TaggedInputStream
Decodes and returns the TagHeader, which includes a TagID and a length

Specified by:
readTagHeader in class TaggedInputStream
Throws:
IOException

readActionHeader

protected ActionHeader readActionHeader()
                                 throws IOException
Description copied from class: TaggedInputStream
Decodes and returns the ActionHeader, which includes an actionCode and a length

Specified by:
readActionHeader in class TaggedInputStream
Throws:
IOException

getVersion

public int getVersion()

FreeHEP API
Version current

Copyright © 2000-2004 FreeHEP, All Rights Reserved.