public interface XMLInterceptor extends Interceptor
XMLInterceptor
class is used to intercept the reading and writing event
while TDataBox
is parsing or outputing xml data.Modifier and Type | Method and Description |
---|---|
void |
afterRead(TDataBox box,
java.io.InputStream in,
Element parentOfRootElement)
Invoked after finishing parsing xml data.
|
void |
afterWrite(TDataBox box,
DataBoxOutputSetting setting)
Invoked after finishing outputing xml data
|
java.io.InputStream |
beforeRead(TDataBox box,
java.io.InputStream in,
Element parentOfRootElement)
Invoked before parsing xml data.
|
void |
beforeWrite(TDataBox box,
DataBoxOutputSetting setting)
Invoked before outputing xml data
|
java.io.InputStream beforeRead(TDataBox box, java.io.InputStream in, Element parentOfRootElement)
box
- the data box that is parsing xmlin
- the input stream that contains xml dataparentOfRootElement
- the parent of root for parsed elements.void afterRead(TDataBox box, java.io.InputStream in, Element parentOfRootElement)
box
- the data box that is parsing xmlin
- the input stream that contains xml dataparentOfRootElement
- the parent of root for parsed elements.void beforeWrite(TDataBox box, DataBoxOutputSetting setting)
box
- the data box that is outputing xmlsetting
- the setting that contains output paramsvoid afterWrite(TDataBox box, DataBoxOutputSetting setting)
box
- the data box that is outputing xmlsetting
- the setting that contains output paramsCopyright © 2002 - 2010 Serva Software. All Rights Reserved.