01: /* ****************************************************************************
02: * Dataset.java
03: * ****************************************************************************/
04:
05: /* J_LZ_COPYRIGHT_BEGIN *******************************************************
06: * Copyright 2001-2004 Laszlo Systems, Inc. All Rights Reserved. *
07: * Use is subject to license terms. *
08: * J_LZ_COPYRIGHT_END *********************************************************/
09:
10: package org.openlaszlo.test.xmlrpc;
11:
12: import java.io.*;
13: import org.jdom.input.*;
14: import org.jdom.*;
15: import org.openlaszlo.xml.DataEncoder;
16: import org.openlaszlo.xml.DataEncoderException;
17:
18: public class Dataset {
19: DataEncoder mEncoder = null;
20: SAXBuilder mBuilder = new SAXBuilder();
21:
22: public DataEncoder getDataset() {
23: return mEncoder;
24: }
25:
26: public void setDataset(String xml) throws JDOMException,
27: IOException, DataEncoderException {
28: mEncoder = new DataEncoder();
29: mEncoder.buildFromDocument(mBuilder
30: .build(new StringReader(xml)));
31: }
32: }
|