cct.tools
Class FortranNamelist

java.lang.Object
  extended by cct.tools.FortranNamelist

public class FortranNamelist
extends java.lang.Object


Field Summary
(package private)  java.lang.String Key
           
(package private)  java.lang.String Name
           
(package private) static int READY_FOR_NEW_OPTION
           
(package private)  int Status
           
(package private)  java.lang.String Value
           
protected  java.util.HashMap Vars
           
(package private) static int WAITING_FOR_VALUE
           
 
Constructor Summary
FortranNamelist()
           
 
Method Summary
(package private)  void clear()
           
 java.lang.String findAndParseFortranNamelist(java.io.BufferedReader in, java.lang.String nm_name)
           
 java.lang.String findAndParseFortranNamelist(java.lang.String filename, java.lang.String nm_name)
           
 java.util.HashMap getVariables()
           
static boolean hasNamelistEnd(java.lang.String line)
           
static boolean hasNamelistStart(java.lang.String line, java.lang.String nm_name)
           
 java.lang.String parseFortranNamelist(java.io.BufferedReader in, java.lang.String line)
           
 java.lang.String parseFortranNamelist(java.lang.String filename)
           
 java.lang.String parseLine(java.lang.String line)
           
static void writeNamelistBody(java.io.StringWriter sWriter, java.lang.String namelistName, java.util.HashMap Vars)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

READY_FOR_NEW_OPTION

static final int READY_FOR_NEW_OPTION
See Also:
Constant Field Values

WAITING_FOR_VALUE

static final int WAITING_FOR_VALUE
See Also:
Constant Field Values

Vars

protected java.util.HashMap Vars

Name

java.lang.String Name

Key

java.lang.String Key

Value

java.lang.String Value

Status

int Status
Constructor Detail

FortranNamelist

public FortranNamelist()
Method Detail

clear

void clear()

getVariables

public java.util.HashMap getVariables()

findAndParseFortranNamelist

public java.lang.String findAndParseFortranNamelist(java.lang.String filename,
                                                    java.lang.String nm_name)
Parameters:
filename - String
nm_name - String
Returns:
String

findAndParseFortranNamelist

public java.lang.String findAndParseFortranNamelist(java.io.BufferedReader in,
                                                    java.lang.String nm_name)
Parameters:
in - BufferedReader
nm_name - String
Returns:
String

parseFortranNamelist

public java.lang.String parseFortranNamelist(java.lang.String filename)
Parameters:
filename - String
Returns:
String

parseFortranNamelist

public java.lang.String parseFortranNamelist(java.io.BufferedReader in,
                                             java.lang.String line)
Parameters:
in - BufferedReader
line - String
Returns:
String

parseLine

public java.lang.String parseLine(java.lang.String line)
Parameters:
line - String
Returns:
String

hasNamelistStart

public static boolean hasNamelistStart(java.lang.String line,
                                       java.lang.String nm_name)
Parameters:
line - String
nm_name - String
Returns:
boolean

hasNamelistEnd

public static boolean hasNamelistEnd(java.lang.String line)
Parameters:
line - String
Returns:
boolean

writeNamelistBody

public static void writeNamelistBody(java.io.StringWriter sWriter,
                                     java.lang.String namelistName,
                                     java.util.HashMap Vars)