01: package org.romaframework.wizard.schema;
02:
03: import java.io.IOException;
04: import java.io.InputStream;
05: import java.io.OutputStream;
06: import java.util.InvalidPropertiesFormatException;
07: import java.util.Properties;
08:
09: public class NoDTDProperties extends Properties {
10: @Override
11: public synchronized void loadFromXML(InputStream in)
12: throws IOException, InvalidPropertiesFormatException {
13: if (in == null)
14: throw new NullPointerException();
15: NoDTDXMLUtils.load(this , in);
16: }
17:
18: @Override
19: public synchronized void storeToXML(OutputStream os,
20: String comment, String encoding) throws IOException {
21: if (os == null)
22: throw new NullPointerException();
23: NoDTDXMLUtils.save(this, os, comment, encoding);
24: }
25:
26: }
|