01: package org.gomba.utils.xml;
02:
03: import org.xml.sax.InputSource;
04:
05: /**
06: * Subclass the SAX InputSource in order to make it wrap an arbitrary object.
07: *
08: * @author Flavio Tordini
09: * @version $Id: ObjectInputSource.java,v 1.2 2004/09/16 09:23:17 flaviotordini Exp $
10: * @see <a href="http://www.saxproject.org/">The SAX Project </a>
11: */
12: public class ObjectInputSource extends InputSource {
13:
14: Object object;
15:
16: /**
17: * Constructor.
18: *
19: * @param object
20: * The source object.
21: */
22: public ObjectInputSource(Object object) {
23: super ();
24: this .object = object;
25: }
26:
27: /**
28: * @return Returns the object.
29: */
30: public Object getObject() {
31: return this.object;
32: }
33: }
|