|
|||||||||
| 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
public class RoverBundle
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 | |
|---|---|
RoverBundle()
Creates an uninitialized RoverBundle |
|
RoverBundle(java.lang.String path)
Creates a RoverBundle pointing at the given path (path is the path of the files minus their extensions). |
|
| 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)
|
DoubleRectangle |
getExtents()
Returns the extents for the bundle. |
java.lang.String |
getName()
|
int |
getNextID()
|
ObjectDump |
getObjectDump()
Returns the ObjectDump in this bundle; creates it if necessary. |
java.io.File |
getRoverFile()
The actual File corresponding to the Rover data. |
java.io.InputStream |
getRoverIn()
Returns an input stream for the rover. |
void |
setName(java.lang.String newName)
|
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public RoverBundle()
public RoverBundle(java.lang.String path)
| Method Detail |
|---|
public void clear()
throws java.io.IOException
java.io.IOException
public void addRoverData(RoverGraphic graphic,
java.util.ArrayList data)
throws java.io.IOException
java.io.IOException
public void addRoverData(RoverGraphic graphic,
java.util.ArrayList labels,
java.util.ArrayList data)
throws java.io.IOException
java.io.IOException
public void addRoverData(byte[] roverBytes,
java.util.ArrayList data)
throws java.io.IOException
java.io.IOException
public void addRoverData(byte[] roverBytes,
java.util.ArrayList labels,
java.util.ArrayList data)
throws java.io.IOException
java.io.IOException
public void close()
throws java.io.IOException
java.io.IOExceptionpublic java.io.File getRoverFile()
public ObjectDump getObjectDump()
public int getNextID()
public void appendData(RoverData data)
public java.io.InputStream getRoverIn()
throws java.io.IOException
java.io.IOExceptionpublic RoverData getData(int ID)
public java.lang.String getName()
public void setName(java.lang.String newName)
public java.lang.String toString()
toString in class java.lang.Objectpublic DoubleRectangle getExtents()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||