net.sf.jour.util
Class ConfigFileUtil
java.lang.Object
net.sf.jour.util.FileUtil
net.sf.jour.util.ConfigFileUtil
public class ConfigFileUtil
- extends FileUtil
TODO Add docs
Need this Class so runtime would not depend on JAXB.
Created on 04.12.2004
Contributing Author(s):
Misha Lifschitz (Inital implementation)
Vlad Skarzhevskyy (Inital implementation)
- Version:
- $Revision: 51 $ ($Author: vlads $) $Date: 2007-10-11 10:43:56 -0400 (Thu, 11 Oct 2007) $
- Author:
- vlads
Method Summary |
static org.w3c.dom.Node |
getChildNode(org.w3c.dom.Node node,
java.lang.String tagName)
|
static org.w3c.dom.Node[] |
getChildNodes(org.w3c.dom.Node node,
java.lang.String tagName)
|
static org.w3c.dom.Node |
getFirstElement(org.w3c.dom.Document doc,
java.lang.String tagname)
|
static java.lang.String |
getNodeAttribute(org.w3c.dom.Node node,
java.lang.String tagName)
|
static boolean |
getNodeAttribute(org.w3c.dom.Node node,
java.lang.String tagName,
boolean defaultValue)
|
static java.lang.String |
getNodeValue(org.w3c.dom.Node node,
java.lang.String tagName)
|
static org.w3c.dom.Document |
loadDocument(java.io.InputStream stream)
|
static org.w3c.dom.Document |
loadDocument(java.net.URL location)
|
static java.io.InputStream |
loadFile(java.lang.String fileName)
|
Methods inherited from class net.sf.jour.util.FileUtil |
closeQuietly, closeQuietly, deleteDir, getFile, getFile, getFile, getFileLocation, getFileLocation, readTextFile, readTextFile, sortFileListByDate, sortFileListByName |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
log
protected static final Logger log
ConfigFileUtil
public ConfigFileUtil()
loadDocument
public static org.w3c.dom.Document loadDocument(java.io.InputStream stream)
throws javax.xml.parsers.ParserConfigurationException,
org.xml.sax.SAXException,
java.io.IOException
- Throws:
javax.xml.parsers.ParserConfigurationException
org.xml.sax.SAXException
java.io.IOException
loadDocument
public static org.w3c.dom.Document loadDocument(java.net.URL location)
throws javax.xml.parsers.ParserConfigurationException,
org.xml.sax.SAXException,
java.io.IOException
- Throws:
javax.xml.parsers.ParserConfigurationException
org.xml.sax.SAXException
java.io.IOException
loadFile
public static java.io.InputStream loadFile(java.lang.String fileName)
getFirstElement
public static org.w3c.dom.Node getFirstElement(org.w3c.dom.Document doc,
java.lang.String tagname)
getChildNode
public static org.w3c.dom.Node getChildNode(org.w3c.dom.Node node,
java.lang.String tagName)
getChildNodes
public static org.w3c.dom.Node[] getChildNodes(org.w3c.dom.Node node,
java.lang.String tagName)
getNodeValue
public static java.lang.String getNodeValue(org.w3c.dom.Node node,
java.lang.String tagName)
getNodeAttribute
public static java.lang.String getNodeAttribute(org.w3c.dom.Node node,
java.lang.String tagName)
getNodeAttribute
public static boolean getNodeAttribute(org.w3c.dom.Node node,
java.lang.String tagName,
boolean defaultValue)
Copyright © 2004-2008 pyx4j.com. All Rights Reserved.