public class NodeNumberReader
extends java.lang.Object
[ ]
) The special character `#
' is a comment character,
commenting out all characters from itself to the end of the current
line. For a file) containing the node numbers 2, 12, 4, 8, 23 and 47, the
following formats are all valid:
2 12 4 8 23 47
[ 2 12 4 8 23 47 ]
# this is a node number file [ 2 12 4 8 23 47 ]
Constructor and Description |
---|
NodeNumberReader(java.io.File file) |
NodeNumberReader(java.io.Reader reader) |
NodeNumberReader(ReaderTokenizer rtok) |
NodeNumberReader(java.lang.String fileName) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
finalize() |
boolean |
getWarningsEnabled() |
boolean |
nodesWereBracketed()
Queries whether the most recently read node numbers were enclosed in
brackets.
|
java.util.ArrayList<FemNode3d> |
read(FemModel3d fem)
Reads a set of nodes for a FEM model, based on the node numbers in the
input stream.
|
static java.util.ArrayList<FemNode3d> |
read(java.io.File file,
FemModel3d fem)
Reads node numbers from a file and uses them to locate nodes within a
specified FEM model.
|
static java.util.ArrayList<FemNode3d> |
read(java.lang.String filePath,
FemModel3d fem)
Reads node numbers from a file and uses them to locate nodes within a
specified FEM model.
|
void |
setWarningsEnabled(boolean enable) |
public NodeNumberReader(ReaderTokenizer rtok)
public NodeNumberReader(java.io.Reader reader)
public NodeNumberReader(java.io.File file) throws java.io.IOException
java.io.IOException
public NodeNumberReader(java.lang.String fileName) throws java.io.IOException
java.io.IOException
public boolean nodesWereBracketed()
true
if last nodes read were bracketed.public boolean getWarningsEnabled()
public void setWarningsEnabled(boolean enable)
public java.util.ArrayList<FemNode3d> read(FemModel3d fem) throws java.io.IOException
fem
- FEM model containing the nodesjava.io.IOException
- if an I/O error occurredpublic void close()
public void finalize()
finalize
in class java.lang.Object
public static java.util.ArrayList<FemNode3d> read(java.io.File file, FemModel3d fem) throws java.io.IOException
file
- file to read the node numbers fromfem
- FEM model containing the nodesjava.io.IOException
- if an I/O error occurredpublic static java.util.ArrayList<FemNode3d> read(java.lang.String filePath, FemModel3d fem) throws java.io.IOException
filePath
- path name of the file to read the node numbers fromfem
- FEM model containing the nodesjava.io.IOException
- if an I/O error occurred