public final class DafReader extends Object
Based on several routines of the SPICE library.
| Modifier and Type | Method and Description |
|---|---|
static void |
readComments(int handle,
int nLines,
int lineSize,
int[] nRead,
String[] buffer,
boolean[] done)
Public method for the lecture of comments in a DAF file.
|
static double[] |
readDataDaf(int handle,
int begin,
int end)
Read the double precision data bounded by two addresses within a DAF.
|
static void |
readFileRecord(int handle,
int[] nd,
int[] ni,
String[] ifname,
int[] fward,
int[] bward,
int[] free)
Read the contents of the file record of a DAF.
|
public static void readFileRecord(int handle,
int[] nd,
int[] ni,
String[] ifname,
int[] fward,
int[] bward,
int[] free)
throws PatriusException
Based on the DAFRFR routine from the SPICE library.
handle - Handle of an open DAF filend - (output) Number of double precision components in summariesni - (output) Number of integer components in summariesifname - (output) Internal file namefward - (output) Forward list pointerbward - (output) Backward list pointerfree - (output) Free address pointerPatriusException - if the file is not open or there is a problem while reading the first recordpublic static void readComments(int handle,
int nLines,
int lineSize,
int[] nRead,
String[] buffer,
boolean[] done)
throws IOException,
PatriusException
handle - Handle of binary DAF opened with read accessnLines - Maximum size, in lines, of BUFFERlineSize - Number of characters in a line (normally 1000)nRead - (output) Number of extracted comment linesbuffer - (output) Buffer where extracted comment lines are placeddone - (output) Indicates whether all comments have been extractedIOException - retrieves the errors from CommentSectionDAF.readCommentsPatriusException - retrieves the errors from CommentSectionDAF.readCommentspublic static double[] readDataDaf(int handle,
int begin,
int end)
throws PatriusException
handle - Handle of a DAFbegin - Initial address within fileend - Final address within filePatriusException - retrieves the errors from ReadDoublePrecisionDAF.readContentDPRecordCopyright © 2024 CNES. All rights reserved.