public class GaffeEncoder extends XMLEncoder
XMLEncoder that strips registration of listeners.
Because listeners are stored in a seperate Vector of
BeanLinks, and any
listeners registered with a bean are part of the designer/generator, we don't
want listeners to be saved.| Constructor and Description |
|---|
GaffeEncoder(OutputStream os)
Constructor for new encoder sending beans to
os. |
| Modifier and Type | Method and Description |
|---|---|
void |
writeStatement(Statement stat)
Overridden
writeStatement. |
close, flush, getOwner, setOwner, writeExpression, writeObjectget, getExceptionListener, getPersistenceDelegate, remove, setExceptionListener, setPersistenceDelegatepublic GaffeEncoder(OutputStream os)
os.os - public void writeStatement(Statement stat)
writeStatement. Strips any statements with a
method name of the form add*Listener, with an EventListener (from the
relevant places in Gaffe) as its only argument.writeStatement in class XMLEncoderstat - Copyright © 2003–2016 Community Z Tools Project. All rights reserved.