01: package de.java2html.properties.demo;
02:
03: import java.io.ByteArrayOutputStream;
04: import java.io.IOException;
05: import java.util.Properties;
06:
07: import de.java2html.options.JavaSourceConversionOptions;
08: import de.java2html.properties.ConversionOptionsPropertiesWriter;
09: import de.jdemo.framework.DemoCase;
10:
11: /**
12: * @author Markus
13: */
14: public class ConversionOptionsPropertiesWriterDemo extends DemoCase {
15: public void demo() throws IOException {
16: Properties properties = new ConversionOptionsPropertiesWriter()
17: .write(JavaSourceConversionOptions.getDefault());
18:
19: ByteArrayOutputStream stream = new ByteArrayOutputStream();
20: properties.store(stream, null);
21: show(new String(stream.toByteArray()));
22: }
23: }
|