|
JNISpice version 2.0.0 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectspice.basic.DAS
public class DAS
Class DAS supports creation of and low-level read operations on DAS files.
This class supports DAS comment area read access.
See the subclass
DSK
for methods used to write that type of file.
Normal read access of DSK files
requires that these files be loaded via
KernelDatabase.load(java.lang.String)
. This method
plays the role of the routine FURNSH in SPICELIB.
The numerical results shown for this example may differ across platforms. The results depend on the SPICE kernels used as input, the compiler and supporting libraries, and the machine specific arithmetic implementation.
Field Summary | |
---|---|
protected java.lang.String |
fileName
|
protected int |
handle
|
protected boolean |
readable
|
protected boolean |
writable
|
Constructor Summary | |
---|---|
|
DAS()
No-args constructor. |
|
DAS(DAS das)
Copy constructor. |
|
DAS(int handle)
Construct a DAS instance from handle of an open DAS file. |
protected |
DAS(java.lang.String fileName)
Construct a DAS instance representing a file. |
Method Summary | |
---|---|
void |
addComments(java.lang.String[] commentBuffer)
Append comments to the comment area of a DAS file. |
void |
close()
Close a specified DAS file, thereby freeing resources. |
void |
deleteComments()
Delete comments from a DAS file. |
int |
getCommentCharacterCount()
Get the number of comment characters in a DAS file. |
int |
getCommentRecordCount()
Get the number of comment records in a DAS file. |
java.lang.String |
getFileName()
Return the file name. |
int |
getHandle()
Get file handle. |
java.lang.String |
getInternalFileName()
Get the internal file name from a DAS file. |
boolean |
isReadable()
Indicate whether a DAS file is readable. |
boolean |
isWritable()
Indicate whether a DAS file is writable. |
static DAS |
openForRead(java.lang.String fileName)
Open a DAS file for write access. |
static DAS |
openForWrite(java.lang.String fileName)
Open a DAS file for read access. |
java.lang.String[] |
readComments(int lineLength)
Read comments from an existing DAS file. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.lang.String fileName
protected int handle
protected boolean readable
protected boolean writable
Constructor Detail |
---|
protected DAS(java.lang.String fileName)
User applications will not need to call this
constructor directly. See the methods openForRead(java.lang.String)
and openForWrite(java.lang.String)
.
public DAS(int handle) throws SpiceException
SpiceException
public DAS(DAS das)
public DAS()
Method Detail |
---|
public static DAS openForRead(java.lang.String fileName) throws SpiceException
SpiceException
public static DAS openForWrite(java.lang.String fileName) throws SpiceException
SpiceException
public int getHandle() throws SpiceException
SpiceException
public java.lang.String getFileName() throws SpiceException
SpiceException
public boolean isReadable()
A DAS file is readable if it has been opened for read OR write access.
public boolean isWritable()
public void close() throws SpiceException
SpiceException
public void addComments(java.lang.String[] commentBuffer) throws SpiceException
SpiceException
public void deleteComments() throws SpiceException
SpiceException
public java.lang.String[] readComments(int lineLength) throws SpiceException
SpiceException
public java.lang.String getInternalFileName() throws SpiceException
This method initializes the internal file name field of the DAS instance and returns a deep copy of the name.
SpiceException
public int getCommentRecordCount() throws SpiceException
SpiceException
public int getCommentCharacterCount() throws SpiceException
SpiceException
|
JNISpice version 2.0.0 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |