|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface MissingDockFactory
A MissingDockFactory
is used by a DockSituation
to read
the contents of a file if the factory that was supposed to read that
content is missing.
Method Summary | |
---|---|
java.lang.Object |
read(java.lang.String id,
java.io.DataInputStream in,
int length)
Reads up to length bytes from in and returns
some object that represents the content of in . |
java.lang.Object |
readXML(java.lang.String id,
XElement element)
Reads element and returns an object that represents the
content of element . |
Method Detail |
---|
java.lang.Object read(java.lang.String id, java.io.DataInputStream in, int length) throws java.io.IOException
length
bytes from in
and returns
some object that represents the content of in
. Note that if
later a factory for id
is registered, then that object will
be cast to the factories preferred way to look at it. A result of
null
indicates that this factory does not know how to
handle the situation.
id
- the id of the factory which was supposed to read the streamin
- the stream to readlength
- the maximal number of bytes this factory can read before
the end of the stream is reached
in
or null
java.io.IOException
- forwarded from in
java.lang.Object readXML(java.lang.String id, XElement element)
element
and returns an object that represents the
content of element
. Note that if later a factory for
id
is registered, then that object will be cast to the
factories preferred way to look at it.
id
- the id of the factory which was supposed to read element
element
- the contents
element
or null
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |