Javax.xml.bind.Marshaller.Listener Class



Introduction

The javax.xml.bind.Marshaller.Listener class registers an instance of an implementation of this class with a Marshaller to externally listen for marshal events.This class enables pre and post processing of each marshalled object.

Class declaration

Following is the declaration for javax.xml.bind.Marshaller.Listener class:

public abstract static class Marshaller.Listener
   extends Object

Class constructors

S.N. Constructor & Description
1 Marshaller.Listener()

Single Constructor.

Class methods

S.N. Method & Description
1 void afterMarshal(Object source)

This is the callback method invoked after marshalling source to XML.

2 void beforeMarshal(Object source)

This is the callback method invoked before marshalling from source to XML.

Methods inherited

This class inherits methods from the following classes −

java.lang.Object

Advertisements