com.phoenix_int.aserver.util.scriptwrapper.api
Class CAEOutputFile
java.lang.Object
com.phoenix_int.aserver.util.scriptwrapper.api.AbstractFile
com.phoenix_int.aserver.util.scriptwrapper.api.CAEOutputFile
- All Implemented Interfaces:
- ParseableFile, java.io.Closeable
-
public class CAEOutputFile
- extends AbstractFile
This represents a binary output file from a CAE program such as NASTRAN or LSDyna.
| Method Summary |
void |
defineArrayVar(java.lang.String name, java.lang.String specifier)
|
void |
defineVar(java.lang.String name, java.lang.String specifier)
|
protected Parser |
newParser(java.io.File rFile, Parser.Mode pmode)
Generate a new parser for the given file and mode |
void |
parse()
|
protected void |
transferVars(ParseableFile.Mode mode)
Transfer values for variables that have been defined using methods from the concrete implementation, i.e. |
| Methods inherited from class com.phoenix_int.aserver.util.scriptwrapper.api.AbstractFile |
actionByMode, backup, close, delete, ensureFileParser, getEncoding, getRealFile, readTemplate, setEncoding, setEncoding, setFileToGenerateOrParse, setTempEmbedded, setTemplateFile, setVariable |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CAEOutputFile
public CAEOutputFile(PHXScriptWrapperObject wrapper,
java.io.File file,
com.phoenix_int.cae.FileType type)
throws com.phoenix_int.license.PHXLicenseException
-
- Throws:
com.phoenix_int.license.PHXLicenseException
CAEOutputFile
public CAEOutputFile(PHXScriptWrapperObject wrapper,
java.io.File file)
throws com.phoenix_int.license.PHXLicenseException
-
- Throws:
com.phoenix_int.license.PHXLicenseException
defineArrayVar
public void defineArrayVar(java.lang.String name,
java.lang.String specifier)
throws PHXNameAlreadyInUseException,
PHXInvalidNameException,
PHXInvalidTypeException
-
- Throws:
PHXNameAlreadyInUseException
PHXInvalidNameException
PHXInvalidTypeException
defineVar
public void defineVar(java.lang.String name,
java.lang.String specifier)
throws PHXNameAlreadyInUseException,
PHXInvalidNameException,
PHXInvalidTypeException
-
- Throws:
PHXNameAlreadyInUseException
PHXInvalidNameException
PHXInvalidTypeException
parse
public void parse()
throws java.lang.Exception
-
- Throws:
java.lang.Exception
newParser
protected Parser newParser(java.io.File rFile,
Parser.Mode pmode)
throws java.io.IOException
- Description copied from class:
AbstractFile
- Generate a new parser for the given file and mode
-
- Specified by:
newParser in class AbstractFile
-
- Parameters:
rFile - The file to open
pmode - caching mode for underlying parser
- Throws:
java.io.IOException
transferVars
protected void transferVars(ParseableFile.Mode mode)
throws java.io.IOException,
com.phoenix_int.aserver.util.PHXInvalidFormatException,
PHXNoSuchTokenException,
java.lang.IllegalAccessException,
java.lang.InstantiationException,
PHXNumberFormatException
- Description copied from class:
AbstractFile
- Transfer values for variables that have been defined using methods from the concrete implementation, i.e.
PHXRowFieldFile.defineVar(String, String, boolean, String)
Variables defined using PHXScriptWrapperObject.addVariable(String, String, boolean) must be explicitly transferred using methods of the concrete implementation class
-
- Specified by:
transferVars in class AbstractFile
-
- Throws:
java.io.IOException
com.phoenix_int.aserver.util.PHXInvalidFormatException
PHXNoSuchTokenException
java.lang.IllegalAccessException
java.lang.InstantiationException
PHXNumberFormatException