public interface ApplicationResource
ApplicationResourceManager
.Modifier and Type | Method and Description |
---|---|
void |
read(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(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(DataOutputStream out) throws IOException
out
- the stream to write intoIOException
- if the operation can't be completedvoid read(DataInputStream in) throws IOException
in
- the stream to read fromIOException
- 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.