public interface DOMStorable
DOMOutput.writeObject
and DOMInput.readObject
.
By convention every object implementing the DOMStorable interface MUST provide a public parameterless constructor.
Strategy
DOMFactory
is used by DOMInput
and DOMOutput
for
reading and writing objects.
Client: DOMInput
, DOMOutput
.
Strategy: DOMFactory
.
Chain of Responsibility
DOMFactory
can delegate reading and writing to objects which implement
the DOMStorable
interface.
Client: DOMFactory
.
Strategy: DOMStorable
.
Modifier and Type | Method and Description |
---|---|
void |
read(DOMInput in) |
void |
write(DOMOutput out) |