public class GDSReader
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
GDSReader.GDSException
Class to report inconsistent GDS.
|
static class |
GDSReader.GSymbol
Class to define the types of objects found in a GDS file.
|
Constructor and Description |
---|
GDSReader(java.lang.String filePath,
java.io.DataInputStream dataInputStream,
long fileLength)
Creates a new instance of GDSReader.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
determineTime()
Method to read the date/time values (in library and cell headers).
|
byte |
getByte()
Method to read the next byte of data from the GDS input stream.
|
double |
getDoubleValue() |
int |
getFlagsValue() |
int |
getIntValue() |
byte |
getLastDataType()
Low-level method to return the 8-bit data type in the GDS object header that was just read by "getToken()".
|
short |
getLastDataWord()
Low-level method to return the first 16 bits of the GDS object header that was just read by "getToken()".
|
byte |
getLastRecordType()
Low-level method to return the 8-bit record type in the GDS object header that was just read by "getToken()".
|
int |
getRemainingDataCount()
Method to tell how many bytes remain in the GDS object being read.
|
int |
getShortValue() |
java.lang.String |
getStringValue() |
void |
getToken()
Method to read the header of the next GDS object.
|
GDSReader.GSymbol |
getTokenType()
Method to tell the type of GDS object that was just read by "getToken()".
|
void |
handleError(java.lang.String msg)
Error handler for GDS inconsistency.
|
public static final GDSReader.GSymbol GDS_HEADER
public static final GDSReader.GSymbol GDS_BGNLIB
public static final GDSReader.GSymbol GDS_LIBNAME
public static final GDSReader.GSymbol GDS_UNITS
public static final GDSReader.GSymbol GDS_ENDLIB
public static final GDSReader.GSymbol GDS_BGNSTR
public static final GDSReader.GSymbol GDS_STRNAME
public static final GDSReader.GSymbol GDS_ENDSTR
public static final GDSReader.GSymbol GDS_BOUNDARY
public static final GDSReader.GSymbol GDS_PATH
public static final GDSReader.GSymbol GDS_SREF
public static final GDSReader.GSymbol GDS_AREF
public static final GDSReader.GSymbol GDS_TEXTSYM
public static final GDSReader.GSymbol GDS_LAYER
public static final GDSReader.GSymbol GDS_DATATYPSYM
public static final GDSReader.GSymbol GDS_WIDTH
public static final GDSReader.GSymbol GDS_XY
public static final GDSReader.GSymbol GDS_ENDEL
public static final GDSReader.GSymbol GDS_SNAME
public static final GDSReader.GSymbol GDS_COLROW
public static final GDSReader.GSymbol GDS_TEXTNODE
public static final GDSReader.GSymbol GDS_NODE
public static final GDSReader.GSymbol GDS_TEXTTYPE
public static final GDSReader.GSymbol GDS_PRESENTATION
public static final GDSReader.GSymbol GDS_STRING
public static final GDSReader.GSymbol GDS_STRANS
public static final GDSReader.GSymbol GDS_MAG
public static final GDSReader.GSymbol GDS_ANGLE
public static final GDSReader.GSymbol GDS_REFLIBS
public static final GDSReader.GSymbol GDS_FONTS
public static final GDSReader.GSymbol GDS_PATHTYPE
public static final GDSReader.GSymbol GDS_GENERATIONS
public static final GDSReader.GSymbol GDS_ATTRTABLE
public static final GDSReader.GSymbol GDS_ELFLAGS
public static final GDSReader.GSymbol GDS_NODETYPE
public static final GDSReader.GSymbol GDS_PROPATTR
public static final GDSReader.GSymbol GDS_PROPVALUE
public static final GDSReader.GSymbol GDS_BOX
public static final GDSReader.GSymbol GDS_BOXTYPE
public static final GDSReader.GSymbol GDS_PLEX
public static final GDSReader.GSymbol GDS_BGNEXTN
public static final GDSReader.GSymbol GDS_ENDEXTN
public static final GDSReader.GSymbol GDS_IDENT
public static final GDSReader.GSymbol GDS_REALNUM
public static final GDSReader.GSymbol GDS_SHORT_NUMBER
public static final GDSReader.GSymbol GDS_NUMBER
public static final GDSReader.GSymbol GDS_FLAGSYM
public static final GDSReader.GSymbol GDS_FORMAT
public static final GDSReader.GSymbol GDS_MASK
public static final GDSReader.GSymbol GDS_ENDMASKS
public GDSReader(java.lang.String filePath, java.io.DataInputStream dataInputStream, long fileLength)
public void getToken() throws java.lang.Exception
java.lang.Exception
- if the GDS file is corrupt.public GDSReader.GSymbol getTokenType()
public int getRemainingDataCount()
public int getFlagsValue()
public int getShortValue()
public int getIntValue()
public double getDoubleValue()
public java.lang.String getStringValue()
public short getLastDataWord()
public byte getLastRecordType()
public byte getLastDataType()
public void handleError(java.lang.String msg) throws GDSReader.GDSException
msg
- the problem with the GDS.GDSReader.GDSException
public byte getByte() throws java.lang.Exception
java.lang.Exception
public java.lang.String determineTime() throws java.lang.Exception
java.lang.Exception