All Packages This Package Previous Next
Interface sqlj.runtime.profile.SerializedProfile
- public interface interface SerializedProfile
A class implementing the serialized profile interface is able to provide
an input stream from which a serialized profile instance may be read.
Instances of serialized profile may be loaded and used by the
Profile.instantiate() method. This object provides a hook by which
profiles may be loaded by non-standard means.
As an example of where this was found useful, it was discovered that
a particular version of a web browser did not support loading of a
serialized object as an applet resource. In this case, the serialized
profile was encoded as a static string on a class implementing
serialized profile, and the class packaged with the applet in place of
the original serialized profile.
- See Also:
- instantiate
-
getProfileAsStream()
- Returns an input stream from which a serialized profile object may be
read.
getProfileAsStream
public abstract InputStream getProfileAsStream() throws IOException
- Returns an input stream from which a serialized profile object may be
read. The first object on the stream returned is expected to be a
serialized profile instance.
- Returns:
- an input stream containing a serialized profile.
- Throws: IOException
- if the stream could not be created
All Packages This Package Previous Next