X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=src%2Fde%2Ftodesbaum%2Futil%2Fxml%2FXML.java;h=8b6b259fe885e9130981ec20b5e3c39a1542b0f3;hb=953de352675a4ad91fe307d816a4ea7780c94274;hp=d84fd757f92bbb397a85c9207e10a902ee5e6165;hpb=6f1a8216cfba28add0ef365b46a08d16d4eb87fe;p=jSite.git diff --git a/src/de/todesbaum/util/xml/XML.java b/src/de/todesbaum/util/xml/XML.java index d84fd75..8b6b259 100644 --- a/src/de/todesbaum/util/xml/XML.java +++ b/src/de/todesbaum/util/xml/XML.java @@ -1,14 +1,16 @@ /* + * jSite - XML.java - Copyright © 2006–2012 David Roden + * * This program is free software; you can redistribute it and/or modify it under * the terms of the GNU General Public License as published by the Free Software * Foundation; either version 2 of the License, or (at your option) any later * version. - * + * * This program is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more * details. - * + * * You should have received a copy of the GNU General Public License along with * this program; if not, write to the Free Software Foundation, Inc., 59 Temple * Place - Suite 330, Boston, MA 02111-1307, USA. @@ -42,7 +44,7 @@ import org.w3c.dom.Document; /** * Contains method to transform DOM XML trees to byte arrays and vice versa. - * + * * @author David Roden <droden@gmail.com> * @version $Id:XML.java 221 2006-03-06 14:46:49Z bombe $ */ @@ -63,7 +65,7 @@ public class XML { /** * Returns a document builder factory. If possible the cached instance will be returned. - * + * * @return A document builder factory */ private static DocumentBuilderFactory getDocumentBuilderFactory() { @@ -76,7 +78,7 @@ public class XML { /** * Returns a document builder. If possible the cached instance will be returned. - * + * * @return A document builder */ private static DocumentBuilder getDocumentBuilder() { @@ -92,7 +94,7 @@ public class XML { /** * Returns a transformer factory. If possible the cached instance will be returned. - * + * * @return A transformer factory */ private static TransformerFactory getTransformerFactory() { @@ -105,7 +107,7 @@ public class XML { /** * Creates a new XML document. - * + * * @return A new XML document */ public static Document createDocument() { @@ -114,7 +116,7 @@ public class XML { /** * Transforms the DOM XML document into a byte array. - * + * * @param document * The document to transform * @return The byte array containing the XML representation @@ -143,7 +145,7 @@ public class XML { /** * Transforms the byte array into a DOM XML document. - * + * * @param data * The byte array to parse * @return The DOM XML document