public interface SerializableObject
| Modifier and Type | Method and Description |
|---|---|
static java.util.BitSet |
readBitSet(java.io.InputStream inputStream)
Read a bitset from a stream.
|
static boolean |
readBoolean(java.io.InputStream inputStream)
Read a boolean from a stream.
|
static byte[] |
readByteArray(java.io.InputStream inputStream)
Read byte array.
|
static java.lang.Class<?> |
readClass(java.io.InputStream inputStream)
Read the class from the stream
|
static double |
readDouble(java.io.InputStream inputStream)
Read a double from a stream.
|
static <T extends SerializableObject> |
readHeterogeneousArray(PlanetModel planetModel,
java.io.InputStream inputStream,
java.lang.Class<T> clazz)
Read an array.
|
static <T extends SerializableObject> |
readHomogeneousArray(PlanetModel planetModel,
java.io.InputStream inputStream,
java.lang.Class<T> clazz)
Read an array.
|
static int |
readInt(java.io.InputStream inputStream)
Read an int from a stream.
|
static long |
readLong(java.io.InputStream inputStream)
Read a long from a stream.
|
static SerializableObject |
readObject(java.io.InputStream inputStream)
Read an object from a stream (for objects that do not need a PlanetModel).
|
static SerializableObject |
readObject(java.io.InputStream inputStream,
java.lang.Class<?> clazz)
Instantiate a serializable object from a stream without a planet model.
|
static SerializableObject |
readObject(PlanetModel planetModel,
java.io.InputStream inputStream)
Read an object from a stream (for objects that need a PlanetModel).
|
static SerializableObject |
readObject(PlanetModel planetModel,
java.io.InputStream inputStream,
java.lang.Class<?> clazz)
Instantiate a serializable object from a stream.
|
static PlanetObject |
readPlanetObject(java.io.InputStream inputStream)
Read a PlanetObject from a stream.
|
static GeoPoint[] |
readPointArray(PlanetModel planetModel,
java.io.InputStream inputStream)
Read a point array.
|
static GeoPolygon[] |
readPolygonArray(PlanetModel planetModel,
java.io.InputStream inputStream)
Read a polygon array.
|
static java.lang.String |
readString(java.io.InputStream inputStream)
Read a string from a stream.
|
void |
write(java.io.OutputStream outputStream)
Serialize to output stream.
|
static void |
writeBitSet(java.io.OutputStream outputStream,
java.util.BitSet bitSet)
Write a bitset to a stream.
|
static void |
writeBoolean(java.io.OutputStream outputStream,
boolean value)
Write a boolean to a stream.
|
static void |
writeByteArray(java.io.OutputStream outputStream,
byte[] bytes)
Write byte array.
|
static void |
writeClass(java.io.OutputStream outputStream,
java.lang.Class<?> clazz)
Write a class to a stream.
|
static void |
writeDouble(java.io.OutputStream outputStream,
double value)
Write a double to a stream.
|
static void |
writeHeterogeneousArray(java.io.OutputStream outputStream,
java.util.List<? extends SerializableObject> values)
Write an array.
|
static void |
writeHeterogeneousArray(java.io.OutputStream outputStream,
SerializableObject[] values)
Write an array.
|
static void |
writeHomogeneousArray(java.io.OutputStream outputStream,
java.util.List<? extends SerializableObject> values)
Write an array.
|
static void |
writeHomogeneousArray(java.io.OutputStream outputStream,
SerializableObject[] values)
Write an array.
|
static void |
writeInt(java.io.OutputStream outputStream,
int value)
Write an int to a stream.
|
static void |
writeLong(java.io.OutputStream outputStream,
long value)
Write a long to a stream.
|
static void |
writeObject(java.io.OutputStream outputStream,
SerializableObject object)
Write an object to a stream.
|
static void |
writePlanetObject(java.io.OutputStream outputStream,
PlanetObject object)
Write a PlanetObject to a stream.
|
static void |
writePointArray(java.io.OutputStream outputStream,
GeoPoint[] values)
Write a point array.
|
static void |
writePointArray(java.io.OutputStream outputStream,
java.util.List<GeoPoint> values)
Write a point array.
|
static void |
writePolygonArray(java.io.OutputStream outputStream,
GeoPolygon[] values)
Write a polgon array.
|
static void |
writePolygonArray(java.io.OutputStream outputStream,
java.util.List<GeoPolygon> values)
Write a polygon array.
|
static void |
writeString(java.io.OutputStream outputStream,
java.lang.String value)
Write a string to a stream.
|
void write(java.io.OutputStream outputStream)
throws java.io.IOException
outputStream - is the output stream to write to.java.io.IOExceptionstatic void writePlanetObject(java.io.OutputStream outputStream,
PlanetObject object)
throws java.io.IOException
outputStream - is the output stream.object - is the object to write.java.io.IOExceptionstatic PlanetObject readPlanetObject(java.io.InputStream inputStream) throws java.io.IOException
inputStream - is the input stream.java.io.IOExceptionstatic void writeObject(java.io.OutputStream outputStream,
SerializableObject object)
throws java.io.IOException
outputStream - is the output stream.object - is the object to write.java.io.IOExceptionstatic SerializableObject readObject(PlanetModel planetModel, java.io.InputStream inputStream) throws java.io.IOException
planetModel - is the planet model to use to deserialize the object.inputStream - is the input stream.java.io.IOExceptionstatic SerializableObject readObject(java.io.InputStream inputStream) throws java.io.IOException
inputStream - is the input stream.java.io.IOExceptionstatic SerializableObject readObject(PlanetModel planetModel, java.io.InputStream inputStream, java.lang.Class<?> clazz) throws java.io.IOException
planetModel - is the planet model.inputStream - is the input stream.clazz - is the class to instantiate.java.io.IOExceptionstatic SerializableObject readObject(java.io.InputStream inputStream, java.lang.Class<?> clazz) throws java.io.IOException
inputStream - is the input stream.clazz - is the class to instantiate.java.io.IOExceptionstatic void writeClass(java.io.OutputStream outputStream,
java.lang.Class<?> clazz)
throws java.io.IOException
outputStream - is the output stream.clazz - is the class to write.java.io.IOExceptionstatic java.lang.Class<?> readClass(java.io.InputStream inputStream)
throws java.io.IOException,
java.lang.ClassNotFoundException
inputStream - is the stream to read from.java.io.IOExceptionjava.lang.ClassNotFoundExceptionstatic void writeString(java.io.OutputStream outputStream,
java.lang.String value)
throws java.io.IOException
outputStream - is the output stream.value - is the string to write.java.io.IOExceptionstatic java.lang.String readString(java.io.InputStream inputStream)
throws java.io.IOException
inputStream - is the stream to read from.java.io.IOExceptionstatic void writePointArray(java.io.OutputStream outputStream,
GeoPoint[] values)
throws java.io.IOException
outputStream - is the output stream.values - is the array of points to write.java.io.IOExceptionstatic void writePointArray(java.io.OutputStream outputStream,
java.util.List<GeoPoint> values)
throws java.io.IOException
outputStream - is the output stream.values - is the list of points to write.java.io.IOExceptionstatic GeoPoint[] readPointArray(PlanetModel planetModel, java.io.InputStream inputStream) throws java.io.IOException
planetModel - is the planet model.inputStream - is the input stream.java.io.IOExceptionstatic void writePolygonArray(java.io.OutputStream outputStream,
GeoPolygon[] values)
throws java.io.IOException
outputStream - is the output stream.values - is the array of points to write.java.io.IOExceptionstatic void writePolygonArray(java.io.OutputStream outputStream,
java.util.List<GeoPolygon> values)
throws java.io.IOException
outputStream - is the output stream.values - is the list of points to write.java.io.IOExceptionstatic GeoPolygon[] readPolygonArray(PlanetModel planetModel, java.io.InputStream inputStream) throws java.io.IOException
planetModel - is the planet model.inputStream - is the input stream.java.io.IOExceptionstatic void writeHomogeneousArray(java.io.OutputStream outputStream,
SerializableObject[] values)
throws java.io.IOException
outputStream - is the output stream,.values - is the array.java.io.IOExceptionstatic void writeHomogeneousArray(java.io.OutputStream outputStream,
java.util.List<? extends SerializableObject> values)
throws java.io.IOException
outputStream - is the output stream,.values - is the array.java.io.IOExceptionstatic <T extends SerializableObject> T[] readHomogeneousArray(PlanetModel planetModel, java.io.InputStream inputStream, java.lang.Class<T> clazz) throws java.io.IOException
planetModel - is the planet model.inputStream - is the input stream.clazz - is the class of the objects to read.java.io.IOExceptionstatic void writeHeterogeneousArray(java.io.OutputStream outputStream,
SerializableObject[] values)
throws java.io.IOException
outputStream - is the output stream,.values - is the array.java.io.IOExceptionstatic void writeHeterogeneousArray(java.io.OutputStream outputStream,
java.util.List<? extends SerializableObject> values)
throws java.io.IOException
outputStream - is the output stream,.values - is the array.java.io.IOExceptionstatic <T extends SerializableObject> T[] readHeterogeneousArray(PlanetModel planetModel, java.io.InputStream inputStream, java.lang.Class<T> clazz) throws java.io.IOException
planetModel - is the planet model.inputStream - is the input stream.java.io.IOExceptionstatic void writeBitSet(java.io.OutputStream outputStream,
java.util.BitSet bitSet)
throws java.io.IOException
outputStream - is the output stream.bitSet - is the bit set to write.java.io.IOExceptionstatic java.util.BitSet readBitSet(java.io.InputStream inputStream)
throws java.io.IOException
inputStream - is the input stream.java.io.IOExceptionstatic void writeByteArray(java.io.OutputStream outputStream,
byte[] bytes)
throws java.io.IOException
outputStream - is the output stream.bytes - is the byte array.java.io.IOExceptionstatic byte[] readByteArray(java.io.InputStream inputStream)
throws java.io.IOException
inputStream - is the input stream.java.io.IOExceptionstatic void writeDouble(java.io.OutputStream outputStream,
double value)
throws java.io.IOException
outputStream - is the output stream.value - is the value to write.java.io.IOExceptionstatic double readDouble(java.io.InputStream inputStream)
throws java.io.IOException
inputStream - is the input stream.java.io.IOExceptionstatic void writeLong(java.io.OutputStream outputStream,
long value)
throws java.io.IOException
outputStream - is the output stream.value - is the value to write.java.io.IOExceptionstatic long readLong(java.io.InputStream inputStream)
throws java.io.IOException
inputStream - is the input stream.java.io.IOExceptionstatic void writeInt(java.io.OutputStream outputStream,
int value)
throws java.io.IOException
outputStream - is the output stream.value - is the value to write.java.io.IOExceptionstatic int readInt(java.io.InputStream inputStream)
throws java.io.IOException
inputStream - is the input stream.java.io.IOExceptionstatic void writeBoolean(java.io.OutputStream outputStream,
boolean value)
throws java.io.IOException
outputStream - is the output stream.value - is the value to write.java.io.IOExceptionstatic boolean readBoolean(java.io.InputStream inputStream)
throws java.io.IOException
inputStream - is the input stream.java.io.IOExceptionCopyright © 2000–2025 The Apache Software Foundation. All rights reserved.