FileDocCategorySizeDatePackage
SerializableResource.javaAPI DocphoneME MR2 API (J2ME)2403Wed May 02 18:00:46 BST 2007com.sun.j2me.global

SerializableResource

public interface SerializableResource
Interface for reading and writing resource custom objects. Each custom object that can be used in device resources must implement this interface. At least read method.

Fields Summary
Constructors Summary
Methods Summary
public java.lang.Objectclone()
Has to implement clone method to allow of making copy of object.

return
object copy

public voidread(java.io.InputStream in)
Read resource from stream.

param
in input stream to be read
throws
IOException thrown when read failed.
throws
ResourceException thrown when resource can't be read.

public voidwrite(java.io.OutputStream out)
Write resource to stream.

param
out output stream to write to
throws
IOException thrown when write failed
throws
ResourceException thrown when resource can't be written.