public interface ApplicationResource
ApplicationResourceManager
.Modifier and Type | Method and Description |
---|---|
void |
read(java.io.DataInputStream in)
Reads the content of this resource from a stream of bytes.
|
void |
readXML(XElement element)
Reads the contents of this resource from a xml element.
|
void |
write(java.io.DataOutputStream out)
Transforms this resource in a stream of bytes.
|
void |
writeXML(XElement element)
Writes the contents of this resource in xml format.
|
void write(java.io.DataOutputStream out) throws java.io.IOException
out
- the stream to write intojava.io.IOException
- if the operation can't be completedvoid read(java.io.DataInputStream in) throws java.io.IOException
in
- the stream to read fromjava.io.IOException
- if the operation can't be finishedvoid writeXML(XElement element)
element
- the element to write into, the attributes of
element
should not be changed.void readXML(XElement element)
element
- the element to read from.