|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.threerings.export.Exporter
com.threerings.export.XMLExporter
public class XMLExporter
Exports to an XML format.
| Field Summary | |
|---|---|
static String |
VERSION
Identifies the format version. |
| Constructor Summary | |
|---|---|
XMLExporter(OutputStream out)
Creates an exporter to write to the specified stream. |
|
| Method Summary | ||
|---|---|---|
void |
close()
Writes out any remaining data and closes the underlying stream. |
|
void |
finish()
Writes out any remaining data without closing the underlying stream. |
|
void |
write(String name,
boolean value)
Associates a boolean value with the current object. |
|
void |
write(String name,
byte value)
Associates a byte value with the current object. |
|
void |
write(String name,
char value)
Associates a character value with the current object. |
|
void |
write(String name,
double value)
Associates a double value with the current object. |
|
void |
write(String name,
float value)
Associates a float value with the current object. |
|
void |
write(String name,
int value)
Associates an integer value with the current object. |
|
void |
write(String name,
long value)
Associates a long value with the current object. |
|
void |
write(String name,
short value)
Associates a short value with the current object. |
|
|
write(String name,
T value,
Class<T> clazz)
Associates an object value with the current object. |
|
void |
writeObject(Object object)
Writes the object to the underlying stream. |
|
| Methods inherited from class com.threerings.export.Exporter |
|---|
defaultWriteFields, write, write, write, write, write, write, write, write, write, write, write, write, write, write, write, write, write, write, write, write, write, write, write, write, write, write, write, write, write, write, write, write, write, write, write, write, write, write, write, write, write, write, write, write, write, write, write, write, write, write, write, write, write, write, write |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String VERSION
| Constructor Detail |
|---|
public XMLExporter(OutputStream out)
| Method Detail |
|---|
public void writeObject(Object object)
throws IOException
Exporter
writeObject in class ExporterIOException
public void write(String name,
boolean value)
throws IOException
Exporter
write in class ExporterIOException
public void write(String name,
byte value)
throws IOException
Exporter
write in class ExporterIOException
public void write(String name,
char value)
throws IOException
Exporter
write in class ExporterIOException
public void write(String name,
double value)
throws IOException
Exporter
write in class ExporterIOException
public void write(String name,
float value)
throws IOException
Exporter
write in class ExporterIOException
public void write(String name,
int value)
throws IOException
Exporter
write in class ExporterIOException
public void write(String name,
long value)
throws IOException
Exporter
write in class ExporterIOException
public void write(String name,
short value)
throws IOException
Exporter
write in class ExporterIOException
public <T> void write(String name,
T value,
Class<T> clazz)
throws IOException
Exporter
write in class ExporterIOException
public void close()
throws IOException
Exporter
close in interface Closeableclose in class ExporterIOException
public void finish()
throws IOException
Exporter
finish in class ExporterIOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||