public class Archiver
extends nxm.sys.lib.DataFile
| Modifier and Type | Class and Description |
|---|---|
class |
Archiver.Channel |
static class |
Archiver.PSD |
static class |
Archiver.ToC |
static class |
Archiver.ToCR |
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
functionList |
static int |
ICEBUFSZ |
static int |
ICEMULTI |
static int |
ICEUNPACK |
static int |
MAXNIOBUF |
static int |
NIO |
static int |
NORMAL |
static java.lang.String |
propertyList |
static int |
RAWMULTI |
static int |
RAWMULTISZ |
static int |
SDDSBUFSZ |
static int |
SDDSMULTI |
static int |
SDDSUNPACK |
static int |
VRTMULTI |
ADDR_ABSCISSA, ADDR_ABSCISSA_AUTO, ADDR_ABSCISSA_LEGACY, ADDR_INDEX, ADDR_TIMECODE, ADDR_UNKNOWN, addressingModeList, ape, bpa, bps, buffer, consLength, dataMode, dataType, dbpe, defPipeSize, E_DET_FAIL, E_DET_OK, E_HCB_FAIL, E_HCB_OK, E_PKT_FAIL, E_PKT_OK, E_PROT_FAIL, formats, hb, hp, IDELTA, IEND, IFROMSIZE, IMODEDEF, ioh, IRELATIVE, ISTART, ITILDE, JDELTA, JEND, JSTART, keywords, OFF_ADJUNCT, pkh, PM_DEFAULT, PM_HEADER, PM_KEYWORDS, PM_KEYWORDSEXT, PM_KEYWORDSMAIN, PM_PACKETHANDLER, PM_TIMECODE, propagationMaskList, Q_ALT, Q_AZIM, Q_ELEV, Q_GHA, Q_LAT, Q_LON, Q_RF, Q_ROLL, Q_SEC, Q_YEAR, RDELTA, spa, timeLine, typeClass, types, xferLengthALWAYSREOPEN, APPEND, aux, BASE, BUFFER_SIZE, cmd, comment, DATA, DBF, DEF_FLAGS, EMBEDDEDLF, EQ_BIN, EQ_DATA, EQ_DEF, EQ_HDR, EQ_KEY, EQ_LENLIM, EQ_SIZE, EQ_TOL, filename, flags, flagsList, FLUSH, fn, FORCEABORT, hasLinefeed, HEADERONLY, IMAGE, INOUT, INPUT, io, isFound, isInput, isOpen, isOutput, JAR, M, MKDIR, NATIVE, NOABORT, NOOPEN, OPTIONAL, OUTPUT, PKTHDR, RADIX_10, RADIX_16, RADIX_2, RADIX_8, REOPEN, SHAPE, size, tag, TAR, TEXT, tolerance, TRUNCATE, WAIT, WARNEMPTY, WRAP, ZIPBANG, BSLASH, BTIC, CARET, COLON, COMMA, CR, EQUALS, FTIC, HTAB, LBRACE, LCURLY, LF, LOWER2UPPER, LOWERA, LOWERZ, LPAREN, MINUS, NINE, NULL, PERIOD, PLUS, QUOTE, RBRACE, RCURLY, RPAREN, SCOLON, SLASH, SPACE, TILDE, UPPER2LOWER, UPPERA, UPPERZ, ZEROALAW, AMODE, ASCII, BMAX, BMIN, BOOL, BYTE, COMPLEX, CONVERT_TYPE_LIST, CRAY, DATA_MODE_LIST, DATA_TYPE_LIST, DMAX, DMIN, DOUBLE, EEEI, falseStates, FLOAT, FMAX, FMIN, IEEE, IMAX, IMIN, INT, LMAX, LMIN, LONG, MATRIX, modeList, MULT_DATA_MODE_LIST, NIBBLE, NMAX, NMIN, NONHOMOGENEOUS, NUMBER, NUMERIC_DATA_TYPE_LIST, numericTypeList, OBJECT, PACKED, QUAD, repList, RESULT_TYPE_LIST, SCALAR, STRING, TABLE, TRANSMATRIX, trueStates, typeList, ULAW, VAX, VECTOR, XLONG, XMAX, XMIN, XMODE, XMVALUE, XMVALUE_KVLIST, XMVALUE_LIST, XMVALUE_TABLE| Modifier and Type | Method and Description |
|---|---|
void |
checkChannels() |
void |
close()
Close a data connection.
|
void |
discontinue() |
static int |
doFunc(java.lang.Object ref,
java.lang.String func,
java.lang.String fname,
double ttop,
double tdur,
java.lang.String event,
java.lang.String file) |
int |
findSDDSChannel(long lbuf,
int boff,
int bytes) |
void |
flush()
Flush any cached data to disk and update header.
|
Archiver.Channel |
getChannel() |
Archiver.Channel |
getChannel(int i) |
java.lang.String |
getChannelFormat() |
double |
getChannelFreq() |
nxm.sys.lib.KeyVector |
getChannels() |
nxm.sys.lib.Time |
getChannelTime() |
java.lang.String |
getEvent() |
long |
getExportSize() |
java.lang.String |
getFunc() |
double |
getLength() |
double |
getLengthBytes() |
int |
getMaxLines() |
double |
getMaxLineSize() |
int |
getMulti() |
nxm.sys.lib.FileName |
getName()
Get the file name for the file, with any qualifiers and trimmers.
|
nxm.sys.lib.FileName |
getName()
Get the file name for the file, with any qualifiers and trimmers.
|
double |
getOffset()
Get the current offset into the file, in bytes.
|
Archiver.PSD |
getPSD() |
Archiver.ToC |
getToC() |
boolean |
isFinished() |
boolean |
isOpen()
Tells if the file is open.
|
boolean |
isOpen()
Tells if the file is open.
|
boolean |
open()
Open the file with the flags that have already been set.
|
boolean |
open(int flags)
Open a data connection with specified flags.
|
boolean |
open(int flags)
Open a data connection with specified flags.
|
static Archiver |
openForExport(nxm.sys.lib.Midas M,
java.lang.String path,
byte[] hdr,
int dir) |
int |
read(long lbuf,
byte[] buf,
int boff,
int bytes,
int chan) |
int |
readExport(byte[] buf,
long offset,
int bytes) |
void |
setAAux(java.lang.String aux) |
void |
setAAux1(java.lang.String aux) |
void |
setAAux2(java.lang.String aux) |
void |
setDur(double dur) |
void |
setEvent(java.lang.String str) |
void |
setFrequency(int freq) |
void |
setFunc(java.lang.String function) |
void |
setMaxLines(int lines) |
void |
setMaxLineSize(double bytes) |
void |
setMulti(int channels) |
void |
setNChan(int channels) |
void |
setPktHeader(ICEPacket icepkh) |
void |
setThrottle(double rate) |
void |
setTime(double wsec,
double fsec)
Sets the header timecode and always put TC_PREC keyword (even if it is zero) see
DataFile.getTime() for details. |
void |
setTime(nxm.sys.lib.Time time)
Sets the header timecode and always put TC_PREC keyword (even if it is zero) see
DataFile.getTime() for details. |
static void |
setTimeNicely(nxm.sys.lib.DataFile df,
double wsec,
double fsec) |
void |
setTimeNicely(nxm.sys.lib.DataFile df,
nxm.sys.lib.Time time) |
void |
setTop(double top) |
int |
write(long lbuf,
byte[] buf,
int boff,
int bytes,
int chan) |
int |
write(long lbuf,
int boff,
int bytes,
int chan) |
int |
writeExport(byte[] buf,
int bytes) |
addComp, addComp, addSubRec, addSubRec, addSubRec, addSubRec, align, avail, checkFormat, checkType, compare, compare, connect, convertHeaderRep, convertHeaderRep, convertHeaderRep, convertRecordRep, copyHeader, createDataBuffer, createDataBuffer, createDataBuffer, equals, equals, equals, equals, equalsHeader, equalsKeywordsExt, erase, eraseFileName, find, findIndex, findRec, findRecOffset, getAPE, getBlueIO, getBlueVer, getBPA, getBPE, getBPS, getCircularFileOffset, getClassVersion, getComment, getCompFormat, getCompName, getCompOffset, getCompType, getCompTypeID, getCompTypeName, getCompUnits, getCompUnitsName, getCompUnitsName, getConsLength, getCreator, getData, getData, getData, getDataBuffer, getDataBuffer, getDataBuffer, getDataMask, getDataRep, getDataSize, getDataStart, getDataStop, getDataT, getDataTable, getDataZ, getDelta, getDetached, getDetachExt, getDetachName, getExtended, getExtSize, getExtStart, getFormat, getFormatMode, getFormatModeName, getFormatType, getFormatTypeName, getFrameSize, getFS, getHeaderLength, getHeadRep, getInByte, getIndex, getIndex, getIndex, getIndex, getIndex, getIndex, getIndex, getIndex, getIndex, getIndexAt, getIndexAt, getInlet, getKeyLength, getKeyScope, getKeyWord, getKeyWord, getKeywords, getKeywordsObject, getLayer, getLayer, getMode, getNextDataFile, getNumberComponents, getNumberOfRows, getNumberSubRecords, getNyquist, getOutByte, getOutlets, getOutMask, getPacket, getPacketHandler, getPacketHandlerFlags, getPipe, getPipeId, getPipeLoc, getPipeSize, getPreviousDataFile, getProtected, getQuadword, getQW, getRate, getRecCompType, getRecCompTypeName, getRecElements, getRecFormat, getRecFormatMode, getRecFormatType, getRecLength, getRecMaximum, getRecMinimum, getRecName, getRecName, getRecOffset, getRecord, getRecordDef, getRecordDefCount, getRecordDefs, getRecReserved, getRecUnits, getRecUnitsName, getRecUnitsPrefix, getReferenceFrame, getSize, getSPA, getStart, getSubsize, getSubSize, getTime, getTimeAt, getTimeAt, getTimeAt, getTimeAtCurrent, getTimeAtCurrent, getTimeCode, getTimeLineHandler, getTimeLineLength, getTimeLineTolerance, getTransLength, getType, getTypeCodeClass, getUniqueRecName, getUniqueRecName, getUnits, getUnitsID, getUnitsID, getUnitsName, getUnitsName, getUnitsNameShort, getUnitsNameShort, getUnitsVarName, getURL, getVersion, getXDelta, getXferLength, getXFrame, getXRate, getXStart, getXUnits, getXUnitsName, getYDelta, getYFrame, getYRate, getYStart, getYUnits, getYUnitsName, init, init, init, init, init, init, init, init, initMain, insertData, isFile, isPipe, isReady, isRecordBased, listElements, listElementsPerLine, listHeader, listKeywords, processReady, propagate, propagate, read, read, read, read, read, read, read, readDataTable, removeData, removeData, rename, reOpen, seek, seek, setBlueIO, setBlueIO, setBlueVer, setBlueVer, setC, setCircularFileLength, setComment, setComp, setCompFormat, setCompName, setComponents, setCompType, setCompUnits, setConsLength, setCTG, setData, setData, setData, setData, setDataMask, setDataRep, setDataSize, setDataStart, setDelta, setDetached, setDetached, setDFS, setExtSize, setExtStart, setFormat, setFormat, setFormatMode, setFormatType, setFrameSize, setFS, setHeadRep, setInByte, setInlet, setInternals, setKeyLength, setKeyScope, setKeywords, setKWSB, setNumberComponents, setNumberSubRecords, setOutByte, setOutlets, setOutMask, setPacket, setPacketHandler, setPipeId, setPipeLoc, setPipeSize, setPreserveDataBuffer, setProtected, setQuadword, setQW, setRecElements, setRecFormat, setRecLength, setRecMaximum, setRecMinimum, setRecName, setRecOffset, setRecordDefs, setRecType, setRecUnits, setRecUnitsPrefix, setReferenceFrame, setSize, setSize, setSR, setStart, setSubRec, setSubRecords, setSubsize, setSubSize, setTime, setTime, setTimeAt, setTimeAt, setTimeAt, setTimeAt, setTimeCode, setTimeCode, setTimeLineLength, setTimeLineTolerance, setTransLength, setType, setType, setUnits, setVersion, setXDelta, setXferLength, setXRate, setXStart, setXUnits, setXUnits, setYDelta, setYRate, setYStart, setYUnits, setYUnits, skip, testRep, toString, update, write, write, write, write, write, write, write, write, writeDataTable, writeHeadercompare, copy, delete, equalsBF, exists, getAux, getEntries, getFeqTolerance, getFileName, getFileNameFor, getFileNameFor, getFlags, getFlagsString, getInstanceFor, getInstanceFor, getMimeType, getMimeType, getName, getQualifier, getQualifiers, getResource, getTag, hashCode, isDir, isOpen, isStream, isStreaming, open, parseFileTestFlag, readByte, setAux, setAux, setDefaultQualifier, setDefaultQualifiers, setExt, setExtDefault, setFeqTolerance, setFeqTolerance, setFlags, setFlags, setName, setOutput, setQualifier, setTag, statuspublic static final java.lang.String propertyList
public static final java.lang.String functionList
public static final int NORMAL
public static final int ICEUNPACK
public static final int SDDSUNPACK
public static final int RAWMULTI
public static final int ICEMULTI
public static final int SDDSMULTI
public static final int VRTMULTI
public static final int NIO
public static final int SDDSBUFSZ
public static final int ICEBUFSZ
public static final int MAXNIOBUF
public static final int RAWMULTISZ
public Archiver(sourcepic sp)
public Archiver()
public int getMulti()
public java.lang.String getFunc()
public int getMaxLines()
public double getMaxLineSize()
public java.lang.String getEvent()
public void setMulti(int channels)
public void setNChan(int channels)
public void setFunc(java.lang.String function)
public void setMaxLines(int lines)
public void setMaxLineSize(double bytes)
public void setFrequency(int freq)
public void setEvent(java.lang.String str)
public void setThrottle(double rate)
public boolean open()
nxm.sys.lib.BaseFileBaseFile.WAIT
flag is set (or the file is a pipe) this method will wait for an input file to be created
if it does not already exist.open in class nxm.sys.lib.DataFiletrue if the file is successfully opened and false if not.public void flush()
nxm.sys.lib.BaseFileflush in class nxm.sys.lib.DataFilepublic void close()
nxm.sys.lib.BaseFileclose in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in class nxm.sys.lib.DataFilepublic void setPktHeader(ICEPacket icepkh)
public int read(long lbuf,
byte[] buf,
int boff,
int bytes,
int chan)
public int write(long lbuf,
int boff,
int bytes,
int chan)
public int write(long lbuf,
byte[] buf,
int boff,
int bytes,
int chan)
public static Archiver openForExport(nxm.sys.lib.Midas M, java.lang.String path, byte[] hdr, int dir)
public long getExportSize()
public int readExport(byte[] buf,
long offset,
int bytes)
public int writeExport(byte[] buf,
int bytes)
public Archiver.ToC getToC()
public Archiver.PSD getPSD()
public double getLengthBytes()
public double getLength()
getLength in class nxm.sys.lib.DataFilepublic double getOffset()
nxm.sys.lib.BaseFilegetOffset in class nxm.sys.lib.BaseFileBaseFile.offset in bytesBaseFile.seek(),
BaseFile.seek(double)public void setAAux(java.lang.String aux)
public void setAAux1(java.lang.String aux)
public void setAAux2(java.lang.String aux)
public double getChannelFreq()
public nxm.sys.lib.Time getChannelTime()
public java.lang.String getChannelFormat()
public Archiver.Channel getChannel()
public Archiver.Channel getChannel(int i)
public nxm.sys.lib.KeyVector getChannels()
public int findSDDSChannel(long lbuf,
int boff,
int bytes)
public void checkChannels()
public void discontinue()
public boolean isFinished()
public void setTop(double top)
public void setDur(double dur)
public void setTime(nxm.sys.lib.Time time)
nxm.sys.lib.DataFileDataFile.getTime() for details.setTime in class nxm.sys.lib.DataFiletime - The Time object with wsec and fsec.public void setTimeNicely(nxm.sys.lib.DataFile df,
nxm.sys.lib.Time time)
public void setTime(double wsec,
double fsec)
nxm.sys.lib.DataFileDataFile.getTime() for details.setTime in class nxm.sys.lib.DataFilewsec - Whole seconds since 1 Jan 1950.fsec - Fractional seconds since 1 Jan 1950.public static void setTimeNicely(nxm.sys.lib.DataFile df,
double wsec,
double fsec)
public static int doFunc(java.lang.Object ref,
java.lang.String func,
java.lang.String fname,
double ttop,
double tdur,
java.lang.String event,
java.lang.String file)
public nxm.sys.lib.FileName getName()
public boolean open(int flags)
BaseFile.OPTIONAL flag is specified.flags - The flags to use (see BaseFile for a list of available "I/O
open flags."BaseFile.NOABORT or BaseFile.OPTIONAL).java.lang.RuntimeException - If unable to open the file and NOT using
BaseFile.NOABORT or BaseFile.OPTIONAL.public boolean isOpen()
public nxm.sys.lib.FileName getName()
public boolean open(int flags)
BaseFile.OPTIONAL flag is specified.flags - The flags to use (see BaseFile for a list of available "I/O
open flags."BaseFile.NOABORT or BaseFile.OPTIONAL).java.lang.RuntimeException - If unable to open the file and NOT using
BaseFile.NOABORT or BaseFile.OPTIONAL.public boolean isOpen()