public class XMLUtil extends Object
コンストラクタと説明 |
---|
XMLUtil() |
修飾子とタイプ | メソッドと説明 |
---|---|
static boolean |
getBooleanValue(jp.co.intra_mart.common.aid.jdk.javax.xml.XmlNode node,
String nodeName)
指定されたノードの値をboolean型に変更して返す。
|
static Document |
getDocument(String fileName)
指定されたファイルのDocumentを取得します。
|
static Document |
getDocument(String fileName,
String key)
指定されたファイルからDocumentを取得します。
|
static InputStream |
getInputStream(String fileName,
String key)
入力ストリームを取得する
key 下記の定数を指定してください。 |
static InputStream |
getInputStreamByClassPath(String path)
入力ストリームをクラスパスから取得します。
|
static InputStream |
getInputStreamByFilePath(String path)
入力ストリームをファイルシステムから取得します
|
public static InputStream getInputStreamByClassPath(String path)
path
- public static InputStream getInputStreamByFilePath(String path) throws FileNotFoundException
path
- FileNotFoundException
public static Document getDocument(String fileName) throws ParserConfigurationException, SAXException, IOException, IllegalArgumentException
fileName
- ファイル名ParserConfigurationException
SAXException
IOException
IllegalArgumentException
public static Document getDocument(String fileName, String key) throws ParserConfigurationException, SAXException, IOException
fileName
- key
- ParserConfigurationException
SAXException
IOException
public static InputStream getInputStream(String fileName, String key) throws FileNotFoundException
key
下記の定数を指定してください。
fileName
- key
- FileNotFoundException
public static boolean getBooleanValue(jp.co.intra_mart.common.aid.jdk.javax.xml.XmlNode node, String nodeName)
node
- nodeName
- Copyright © 2012 NTT DATA INTRAMART CORPORATION