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 Type
    Method
    Description
    void
    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
    Transforms this resource in a stream of bytes.
    void
    writeXML(XElement element)
    Writes the contents of this resource in xml format.
  • Method Details

    • write

      void write(DataOutputStream out) throws IOException
      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

      void read(DataInputStream in) throws IOException
      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

      void writeXML(XElement element)
      Writes the contents of this resource in xml format.
      Parameters:
      element - the element to write into, the attributes of element should not be changed.
    • readXML

      void readXML(XElement element)
      Reads the contents of this resource from a xml element.
      Parameters:
      element - the element to read from.