|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.threerings.export.Importer
public abstract class Importer
Used to read Exportable objects. Other common object types are supported as well
(@see Exporter).
Exportable| Constructor Summary | |
|---|---|
Importer()
|
|
| Method Summary | ||
|---|---|---|
abstract void |
close()
Closes the underlying stream. |
|
void |
defaultReadFields()
Writes the default fields of the object. |
|
abstract boolean |
read(String name,
boolean defvalue)
Reads a boolean value associated with the current object. |
|
boolean[] |
read(String name,
boolean[] defvalue)
Reads a boolean array value associated with the current object. |
|
abstract byte |
read(String name,
byte defvalue)
Reads a byte value associated with the current object. |
|
byte[] |
read(String name,
byte[] defvalue)
Reads a byte array value associated with the current object. |
|
ByteBuffer |
read(String name,
ByteBuffer defvalue)
Reads a byte buffer value associated with the current object. |
|
abstract char |
read(String name,
char defvalue)
Reads a character value associated with the current object. |
|
char[] |
read(String name,
char[] defvalue)
Reads a character array value associated with the current object. |
|
CharBuffer |
read(String name,
CharBuffer defvalue)
Reads a character buffer value associated with the current object. |
|
Color4f |
read(String name,
Color4f defvalue)
Reads a color value associated with the current object. |
|
abstract double |
read(String name,
double defvalue)
Reads a double value associated with the current object. |
|
double[] |
read(String name,
double[] defvalue)
Reads a double array value associated with the current object. |
|
DoubleBuffer |
read(String name,
DoubleBuffer defvalue)
Reads a double buffer value associated with the current object. |
|
Exportable |
read(String name,
Exportable defvalue)
Reads an exportable value associated with the current object. |
|
abstract float |
read(String name,
float defvalue)
Reads a float value associated with the current object. |
|
float[] |
read(String name,
float[] defvalue)
Reads a float array value associated with the current object. |
|
FloatBuffer |
read(String name,
FloatBuffer defvalue)
Reads a float buffer value associated with the current object. |
|
abstract int |
read(String name,
int defvalue)
Reads an integer value associated with the current object. |
|
int[] |
read(String name,
int[] defvalue)
Reads an integer array value associated with the current object. |
|
IntBuffer |
read(String name,
IntBuffer defvalue)
Reads an integer buffer value associated with the current object. |
|
abstract long |
read(String name,
long defvalue)
Reads a long value associated with the current object. |
|
long[] |
read(String name,
long[] defvalue)
Reads a long array value associated with the current object. |
|
LongBuffer |
read(String name,
LongBuffer defvalue)
Reads a long buffer value associated with the current object. |
|
Matrix3f |
read(String name,
Matrix3f defvalue)
Reads a matrix value associated with the current object. |
|
Matrix4f |
read(String name,
Matrix4f defvalue)
Reads a matrix value associated with the current object. |
|
Quaternion |
read(String name,
Quaternion defvalue)
Reads a quaternion value associated with the current object. |
|
abstract short |
read(String name,
short defvalue)
Reads a short value associated with the current object. |
|
short[] |
read(String name,
short[] defvalue)
Reads a short array value associated with the current object. |
|
ShortBuffer |
read(String name,
ShortBuffer defvalue)
Reads a short buffer value associated with the current object. |
|
String |
read(String name,
String defvalue)
Reads a string value associated with the current object. |
|
abstract
|
read(String name,
T defvalue,
Class<T> clazz)
Reads an object value associated with the current object. |
|
Vector2f |
read(String name,
Vector2f defvalue)
Reads a vector value associated with the current object. |
|
Vector3f |
read(String name,
Vector3f defvalue)
Reads a vector value associated with the current object. |
|
abstract Object |
readObject()
Imports an object from the underlying stream. |
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Importer()
| Method Detail |
|---|
public abstract Object readObject()
throws IOException
IOException
public void defaultReadFields()
throws IOException
IOException
public abstract boolean read(String name,
boolean defvalue)
throws IOException
IOException
public abstract byte read(String name,
byte defvalue)
throws IOException
IOException
public abstract char read(String name,
char defvalue)
throws IOException
IOException
public abstract double read(String name,
double defvalue)
throws IOException
IOException
public abstract float read(String name,
float defvalue)
throws IOException
IOException
public abstract int read(String name,
int defvalue)
throws IOException
IOException
public abstract long read(String name,
long defvalue)
throws IOException
IOException
public abstract short read(String name,
short defvalue)
throws IOException
IOException
public boolean[] read(String name,
boolean[] defvalue)
throws IOException
IOException
public byte[] read(String name,
byte[] defvalue)
throws IOException
IOException
public char[] read(String name,
char[] defvalue)
throws IOException
IOException
public double[] read(String name,
double[] defvalue)
throws IOException
IOException
public float[] read(String name,
float[] defvalue)
throws IOException
IOException
public int[] read(String name,
int[] defvalue)
throws IOException
IOException
public long[] read(String name,
long[] defvalue)
throws IOException
IOException
public short[] read(String name,
short[] defvalue)
throws IOException
IOException
public String read(String name,
String defvalue)
throws IOException
IOException
public ByteBuffer read(String name,
ByteBuffer defvalue)
throws IOException
IOException
public CharBuffer read(String name,
CharBuffer defvalue)
throws IOException
IOException
public DoubleBuffer read(String name,
DoubleBuffer defvalue)
throws IOException
IOException
public FloatBuffer read(String name,
FloatBuffer defvalue)
throws IOException
IOException
public IntBuffer read(String name,
IntBuffer defvalue)
throws IOException
IOException
public LongBuffer read(String name,
LongBuffer defvalue)
throws IOException
IOException
public ShortBuffer read(String name,
ShortBuffer defvalue)
throws IOException
IOException
public Color4f read(String name,
Color4f defvalue)
throws IOException
IOException
public Matrix3f read(String name,
Matrix3f defvalue)
throws IOException
IOException
public Matrix4f read(String name,
Matrix4f defvalue)
throws IOException
IOException
public Quaternion read(String name,
Quaternion defvalue)
throws IOException
IOException
public Vector2f read(String name,
Vector2f defvalue)
throws IOException
IOException
public Vector3f read(String name,
Vector3f defvalue)
throws IOException
IOException
public Exportable read(String name,
Exportable defvalue)
throws IOException
IOException
public abstract <T> T read(String name,
T defvalue,
Class<T> clazz)
throws IOException
IOException
public abstract void close()
throws IOException
close in interface CloseableIOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||