com.ohrasys.cad.gds
Class GDSParser

java.lang.Object
  extended by com.ohrasys.cad.gds.GDSParser

public class GDSParser
extends java.lang.Object

A GDS design parser. The parser will parse a GDS design, verify that it is a well formed design and record statistics on the types of GDS records contained in the database.

Since:
1.5

Constructor Summary
GDSParser()
          Creates a new GDSParser object.
GDSParser(boolean isPreemptable)
          Creates a new GDSParser object.
 
Method Summary
 java.util.List parseDesign(java.io.File in, java.io.OutputStream out)
          Parses a GDS design, records statistics about the design and verifies that it is well formed.
 void setCollecting(boolean isCollecting)
          Turns on data collection in the parser
 java.lang.String toString()
          Returns a string representation of this class
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

GDSParser

public GDSParser()
Creates a new GDSParser object.


GDSParser

public GDSParser(boolean isPreemptable)
Creates a new GDSParser object.

Parameters:
isPreemptable - True if the parser should ocassionally yield to other threads.
Method Detail

parseDesign

public java.util.List parseDesign(java.io.File in,
                                  java.io.OutputStream out)
Parses a GDS design, records statistics about the design and verifies that it is well formed.

Please see The GDSII techincal reference for a more complete discussion of the GDSII stream syntax.

Parameters:
in - The File from which to read.
out - The output stream to write statistics and log information to. May be null.
Returns:
An ArrayList containing the ordered list of GDSRecords parsed.

setCollecting

public void setCollecting(boolean isCollecting)
Turns on data collection in the parser

Parameters:
isCollecting - true if data collection is to be performed

toString

public java.lang.String toString()
Returns a string representation of this class

Overrides:
toString in class java.lang.Object
Returns:
The physical address of this instance