|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.threerings.export.Importer
com.threerings.export.XMLImporter
public class XMLImporter
Imports from the XML format generated by XMLExporter.
| Constructor Summary | |
|---|---|
XMLImporter(InputStream in)
Creates an importer to read from the specified stream. |
|
| Method Summary | ||
|---|---|---|
void |
close()
Closes the underlying stream. |
|
boolean |
read(String name,
boolean defvalue)
Reads a boolean value associated with the current object. |
|
byte |
read(String name,
byte defvalue)
Reads a byte value associated with the current object. |
|
char |
read(String name,
char defvalue)
Reads a character value associated with the current object. |
|
double |
read(String name,
double defvalue)
Reads a double value associated with the current object. |
|
float |
read(String name,
float defvalue)
Reads a float value associated with the current object. |
|
int |
read(String name,
int defvalue)
Reads an integer value associated with the current object. |
|
long |
read(String name,
long defvalue)
Reads a long value associated with the current object. |
|
short |
read(String name,
short defvalue)
Reads a short value associated with the current object. |
|
|
read(String name,
T defvalue,
Class<T> clazz)
Reads an object value associated with the current object. |
|
Object |
readObject()
Imports an object from the underlying stream. |
|
| Methods inherited from class com.threerings.export.Importer |
|---|
defaultReadFields, read, read, read, read, read, read, read, read, read, read, read, read, read, read, read, read, read, read, read, read, read, read, read |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public XMLImporter(InputStream in)
| Method Detail |
|---|
public Object readObject()
throws IOException
Importer
readObject in class ImporterIOException
public boolean read(String name,
boolean defvalue)
throws IOException
Importer
read in class ImporterIOException
public byte read(String name,
byte defvalue)
throws IOException
Importer
read in class ImporterIOException
public char read(String name,
char defvalue)
throws IOException
Importer
read in class ImporterIOException
public double read(String name,
double defvalue)
throws IOException
Importer
read in class ImporterIOException
public float read(String name,
float defvalue)
throws IOException
Importer
read in class ImporterIOException
public int read(String name,
int defvalue)
throws IOException
Importer
read in class ImporterIOException
public long read(String name,
long defvalue)
throws IOException
Importer
read in class ImporterIOException
public short read(String name,
short defvalue)
throws IOException
Importer
read in class ImporterIOException
public <T> T read(String name,
T defvalue,
Class<T> clazz)
throws IOException
Importer
read in class ImporterIOException
public void close()
throws IOException
Importer
close in interface Closeableclose in class ImporterIOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||