From 1897eace96225a1571a01031efc90a4224556c9d Mon Sep 17 00:00:00 2001 From: Fredrik Tolf Date: Sun, 13 Dec 2009 17:39:02 +0100 Subject: [PATCH] Removed a couple of testing mains. --- src/dolda/jsvc/next/IndentWriter.java | 12 ------------ src/dolda/jsvc/next/Parser.java | 11 ----------- 2 files changed, 23 deletions(-) diff --git a/src/dolda/jsvc/next/IndentWriter.java b/src/dolda/jsvc/next/IndentWriter.java index 93f9c0c..5ec70c0 100644 --- a/src/dolda/jsvc/next/IndentWriter.java +++ b/src/dolda/jsvc/next/IndentWriter.java @@ -45,16 +45,4 @@ public class IndentWriter extends XmlWriter { } super.attribute(out, nm, val, indent); } - - public static void main(String[] args) throws Exception { - Html barda = Html.xhtml11("Barda"); - barda.addcss("/slen.css", "Test"); - barda.insert("body", barda.el("h1", barda.text("Mast"))); - barda.finalise(); - barda.validate(); - XmlWriter w = new IndentWriter(barda.doc); - w.setnsname(Html.ns, null); - w.write(System.out); - System.out.flush(); - } } diff --git a/src/dolda/jsvc/next/Parser.java b/src/dolda/jsvc/next/Parser.java index ffbaf88..962dc85 100644 --- a/src/dolda/jsvc/next/Parser.java +++ b/src/dolda/jsvc/next/Parser.java @@ -222,15 +222,4 @@ public class Parser { return(String.format("\\%03o", (int)c)); return(Character.toString((char)c)); } - - public static void main(String[] args) throws Exception { - Parser p = new Parser(); - DocumentFragment f = p.parse(new FileReader(args[0])); - javax.xml.transform.TransformerFactory fac = javax.xml.transform.TransformerFactory.newInstance(); - fac.setAttribute("indent-number", 2); - javax.xml.transform.Transformer t = fac.newTransformer(); - t.setOutputProperty(javax.xml.transform.OutputKeys.INDENT, "yes"); - t.transform(new javax.xml.transform.dom.DOMSource(f), new javax.xml.transform.stream.StreamResult(System.out)); - System.out.println(t.getClass()); - } } -- 2.11.0