public interface MissingDockFactory
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.| Modifier and Type | Method and Description |
|---|---|
Object |
read(String id,
DataInputStream in,
int length)
Reads up to
length bytes from in and returns
some object that represents the content of in. |
Object |
readXML(String id,
XElement element)
Reads
element and returns an object that represents the
content of element. |
Object read(String id, DataInputStream in, int length) throws 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 reachedin or nullIOException - forwarded from inObject readXML(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 elementelement - the contentselement or nullCopyright © 2017 Docking Frames. All rights reserved.