KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > genimen > djeneric > web > renderers > AbstractRenderer


1 package com.genimen.djeneric.web.renderers;
2
3 import javax.xml.parsers.DocumentBuilder JavaDoc;
4 import javax.xml.parsers.DocumentBuilderFactory JavaDoc;
5 import javax.xml.parsers.FactoryConfigurationError JavaDoc;
6 import javax.xml.parsers.ParserConfigurationException JavaDoc;
7
8 import org.w3c.dom.Document JavaDoc;
9
10 public abstract class AbstractRenderer
11 {
12
13   protected Document JavaDoc createDocument() throws FactoryConfigurationError JavaDoc, ParserConfigurationException JavaDoc
14   {
15     DocumentBuilderFactory JavaDoc factory = DocumentBuilderFactory.newInstance();
16     DocumentBuilder JavaDoc builder = factory.newDocumentBuilder();
17     Document JavaDoc doc = builder.newDocument();
18     return doc;
19   }
20
21
22 }
23
Popular Tags