KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > openlaszlo > test > xmlrpc > Dataset


1 /* ****************************************************************************
2  * Dataset.java
3  * ****************************************************************************/

4
5 /* J_LZ_COPYRIGHT_BEGIN *******************************************************
6 * Copyright 2001-2004 Laszlo Systems, Inc. All Rights Reserved. *
7 * Use is subject to license terms. *
8 * J_LZ_COPYRIGHT_END *********************************************************/

9
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 {
20     DataEncoder mEncoder = null;
21     SAXBuilder mBuilder = new SAXBuilder();
22
23     public DataEncoder getDataset() {
24         return mEncoder;
25     }
26
27     public void setDataset(String JavaDoc xml)
28         throws JDOMException, IOException, DataEncoderException {
29         mEncoder = new DataEncoder();
30         mEncoder.buildFromDocument(mBuilder.build(new StringReader(xml)));
31     }
32 }
33
34
Popular Tags