com.sun.electric.tool.io.input
Class LEF

java.lang.Object
  extended by com.sun.electric.tool.io.input.Input
      extended by com.sun.electric.tool.io.input.LEFDEF
          extended by com.sun.electric.tool.io.input.LEF

public class LEF
extends LEFDEF

This class reads files in LEF files.
Note that this reader was built by examining LEF files and reverse-engineering them. It does not claim to be compliant with the LEF specification, but it also does not claim to define a new specification. It is merely incomplete.


Nested Class Summary
static class LEF.LEFPreferences
           
 
Nested classes/interfaces inherited from class com.sun.electric.tool.io.input.LEFDEF
LEFDEF.GetLayerInformation, LEFDEF.ViaDef
 
Nested classes/interfaces inherited from class com.sun.electric.tool.io.input.Input
Input.InputPreferences
 
Field Summary
 
Fields inherited from class com.sun.electric.tool.io.input.LEFDEF
firstViaDefFromLEF, knownLayers, OVERALLSCALE, PLACEDEFNETS, PLACELEFGEOMETRY, prXkey, prYkey, widthsFromLEF
 
Fields inherited from class com.sun.electric.tool.io.input.Input
byteCount, dataInputStream, ep, errorLogger, fileLength, filePath, inputStream, lineReader, READ_BUFFER_SIZE
 
Method Summary
protected  Library importALibrary(Library lib, Technology tech, java.util.Map<Library,Cell> currentCells)
          Method to import a library from disk.
protected  java.lang.String preprocessLine(java.lang.String line)
          Helper method for keyword processing which removes comments.
 
Methods inherited from class com.sun.electric.tool.io.input.LEFDEF
getLayerInformation
 
Methods inherited from class com.sun.electric.tool.io.input.Input
changesQuiet, closeInput, eofDuring, getAKeyword, getInputPreferences, getLine, getLineFromBinary, getProgressNote, getRestOfLine, importLibrary, initKeywordParsing, isBreakCharacter, isChangeQuiet, isNewLibraryCreated, openBinaryInput, openStringsInput, openTextInput, readWholeLine, setProgressNote, setProgressValue, startProgressDialog, stopProgressDialog, updateProgressDialog
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

importALibrary

protected Library importALibrary(Library lib,
                                 Technology tech,
                                 java.util.Map<Library,Cell> currentCells)
Method to import a library from disk.

Overrides:
importALibrary in class Input
Parameters:
lib - the library to fill
currentCells - this map will be filled with currentCells in Libraries found in library file
Returns:
the created library (null on error).

preprocessLine

protected java.lang.String preprocessLine(java.lang.String line)
Helper method for keyword processing which removes comments.

Overrides:
preprocessLine in class Input
Parameters:
line - a line of text just read.
Returns:
the line after comments have been removed.