Added basic HTML generation and response handling.
[jrw.git] / src / jrw / sp / DocType.java
diff --git a/src/jrw/sp/DocType.java b/src/jrw/sp/DocType.java
new file mode 100644 (file)
index 0000000..f6750ec
--- /dev/null
@@ -0,0 +1,15 @@
+package jrw.sp;
+
+public class DocType {
+    public final String rootname, pubid, dtdid;
+
+    public DocType(String rootname, String pubid, String dtdid) {
+       this.rootname = rootname;
+       this.pubid = pubid;
+       this.dtdid = dtdid;
+    }
+
+    public String format() {
+       return(String.format("<!DOCTYPE %s PUBLIC \"%s\" \"%s\">", rootname, pubid, dtdid));
+    }
+}