public class XMLInterceptorAdapter extends java.lang.Object implements XMLInterceptor
XMLInterceptorAdapter
is a adapter for XMLInterceptor
to intercept the reading and writing event while TDataBox
is parsing
or outputing xml data.Constructor and Description |
---|
XMLInterceptorAdapter() |
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
|
public java.io.InputStream beforeRead(TDataBox box, java.io.InputStream in, Element parentOfRootElement)
beforeRead
in interface XMLInterceptor
box
- the data box that is parsing xmlin
- the input stream that contains xml dataparentOfRootElement
- the parent of root for parsed elements.public void afterRead(TDataBox box, java.io.InputStream in, Element parentOfRootElement)
afterRead
in interface XMLInterceptor
box
- the data box that is parsing xmlin
- the input stream that contains xml dataparentOfRootElement
- the parent of root for parsed elements.public void beforeWrite(TDataBox box, DataBoxOutputSetting setting)
beforeWrite
in interface XMLInterceptor
box
- the data box that is outputing xmlsetting
- the setting that contains output paramspublic void afterWrite(TDataBox box, DataBoxOutputSetting setting)
afterWrite
in interface XMLInterceptor
box
- the data box that is outputing xmlsetting
- the setting that contains output paramsCopyright © 2002 - 2010 Serva Software. All Rights Reserved.