public abstract class FemWriterBase extends FemReaderWriterBase implements FemWriter
FemReaderWriterBase.ShellType
FemWriter.DataFormat, FemWriter.FloatType
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DEFAULT_FORMAT |
Modifier and Type | Method and Description |
---|---|
void |
close()
Closes the outputs for this writer.
|
void |
flush()
Flushes the outputs for this writer.
|
NumberFormat |
getFormat()
Queries the format used for writing floating point numbers.
|
void |
setFormat(NumberFormat fmt)
Sets the format used for writing floating point numbers, as described by
NumberFormat . |
void |
setFormat(java.lang.String fmtStr)
Sets the format used for writing floating point numbers, using a string
specification as described in the documentation for
NumberFormat . |
abstract void |
writeFem(FemModel3d mesh) |
public static final java.lang.String DEFAULT_FORMAT
public abstract void writeFem(FemModel3d mesh) throws java.io.IOException
public void setFormat(java.lang.String fmtStr)
NumberFormat
.
A null string sets the format to the default, which corresponds to '"%g"'
and causes floats to be written out in full precision.fmtStr
- format specification for writing floating point numberspublic void setFormat(NumberFormat fmt)
NumberFormat
. A null value sets the format to the default, which
corresponds to '"%g"' and causes floats to be written out in full
precision.fmt
- format for writing floating point numberspublic NumberFormat getFormat()
public void flush()
public void close()