Package bibliothek.gui.dock.support.util
Interface ApplicationResource
- All Known Implementing Classes:
CControlPerspectiveResource
public interface ApplicationResource
A resource that is created by the application and is stored persistent
by the
ApplicationResourceManager.- Author:
- Benjamin Sigg
-
Method Summary
Modifier and TypeMethodDescriptionvoidread(DataInputStream in) Reads the content of this resource from a stream of bytes.voidReads the contents of this resource from a xml element.voidwrite(DataOutputStream out) Transforms this resource in a stream of bytes.voidWrites the contents of this resource in xml format.
-
Method Details
-
write
Transforms this resource in a stream of bytes.- Parameters:
out- the stream to write into- Throws:
IOException- if the operation can't be completed
-
read
Reads the content of this resource from a stream of bytes.- Parameters:
in- the stream to read from- Throws:
IOException- if the operation can't be finished
-
writeXML
Writes the contents of this resource in xml format.- Parameters:
element- the element to write into, the attributes ofelementshould not be changed.
-
readXML
Reads the contents of this resource from a xml element.- Parameters:
element- the element to read from.
-