|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.partnersoft.v3x.io.formats.rover.RoverBundle
com.partnersoft.v3x.io.formats.rover.RoverBundleInMemory
public class RoverBundleInMemory
A single combination of a RoverFile and ObjectDump datafile+indexfile. Used to store a single chunk of (presumably homogenous) rover data; e.g. for GPS display or whatever. Example of usage:
RoverPoint point = new RoverPoint(1, 500.0 340.0);
ArrayList data = new ArrayList();
data.add("Here's some data for the point");
RoverBundle bundle = new RoverBundle("/tmp/test/rover/MyBundle");
bundle.clear(); // if we don't do this we're appending
bundle.addRoverData(point, data);
bundle.close();
| Constructor Summary | |
|---|---|
RoverBundleInMemory()
Creates an uninitialized RoverBundleInMemory |
|
| Method Summary | |
|---|---|
void |
addRoverData(byte[] roverBytes,
java.util.ArrayList data)
Adds a rover bytestream and its data. |
void |
addRoverData(byte[] roverBytes,
java.util.ArrayList labels,
java.util.ArrayList data)
Adds a rover bytestream and its data. |
void |
addRoverData(RoverGraphic graphic,
java.util.ArrayList data)
Adds a single rover entity and its data. |
void |
addRoverData(RoverGraphic graphic,
java.util.ArrayList labels,
java.util.ArrayList data)
Adds a single rover entity and its data. |
void |
appendData(RoverData data)
|
void |
clear()
Removes all data (rover and object). |
void |
close()
Flushes and closes any open files. |
RoverData |
getData(int ID)
|
int |
getNextID()
|
java.io.InputStream |
getRoverIn()
Returns an input stream for the rover. |
| Methods inherited from class com.partnersoft.v3x.io.formats.rover.RoverBundle |
|---|
getExtents, getName, getObjectDump, getRoverFile, setName, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public RoverBundleInMemory()
| Method Detail |
|---|
public void clear()
throws java.io.IOException
clear in class RoverBundlejava.io.IOException
public void addRoverData(RoverGraphic graphic,
java.util.ArrayList data)
throws java.io.IOException
addRoverData in class RoverBundlejava.io.IOException
public void addRoverData(RoverGraphic graphic,
java.util.ArrayList labels,
java.util.ArrayList data)
throws java.io.IOException
addRoverData in class RoverBundlejava.io.IOException
public void addRoverData(byte[] roverBytes,
java.util.ArrayList data)
throws java.io.IOException
addRoverData in class RoverBundlejava.io.IOException
public void addRoverData(byte[] roverBytes,
java.util.ArrayList labels,
java.util.ArrayList data)
throws java.io.IOException
addRoverData in class RoverBundlejava.io.IOException
public void close()
throws java.io.IOException
close in class RoverBundlejava.io.IOExceptionpublic int getNextID()
getNextID in class RoverBundlepublic void appendData(RoverData data)
appendData in class RoverBundlepublic RoverData getData(int ID)
getData in class RoverBundle
public java.io.InputStream getRoverIn()
throws java.io.IOException
getRoverIn in class RoverBundlejava.io.IOException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||