クラス XmlLibrary
java.lang.Object
jp.ne.mki.wedge.rule.common.xml.XmlLibrary
Xmlライブラリ
- バージョン:
- 1.0
-
コンストラクタの概要
コンストラクタ -
メソッドの概要
修飾子とタイプメソッド説明static InputStreamgetTextFileStream(String filename) ファイルパス(URL)より、そのファイルのStreamを取得する ファイルにプロトコルが無い場合には、CodeBase + filename のURLにアクセスします。static voidwriteXsltResult(InputStream is, OutputStream os, String xslFilename) xml,xslによりXSLTを行うstatic byte[]writeXsltResult(InputStream is, String xslFileName) xml,xslによりXSLTを行うstatic voidwriteXsltResult(StreamSource is, StreamResult os, StreamSource xsl) xml,xslによりXSLTを行う
-
コンストラクタの詳細
-
XmlLibrary
public XmlLibrary()
-
-
メソッドの詳細
-
writeXsltResult
public static void writeXsltResult(InputStream is, OutputStream os, String xslFilename) throws Throwable xml,xslによりXSLTを行う- パラメータ:
InputStream- 変換元XMLOutputStream- 書き込み先String- xslファイル名称(URL)- 例外:
Throwable
-
writeXsltResult
xml,xslによりXSLTを行う- パラメータ:
InputStream- 変換元XMLString- xslファイル名称(URL)- 戻り値:
- byte[] 結果のバイト配列
- 例外:
Throwable
-
writeXsltResult
public static void writeXsltResult(StreamSource is, StreamResult os, StreamSource xsl) throws Throwable xml,xslによりXSLTを行う- パラメータ:
StreamSource- 変換元XMLStreamStreamResult- 書き込み先StreamStreamResult- xslファイルStream- 例外:
Throwable
-
getTextFileStream
ファイルパス(URL)より、そのファイルのStreamを取得する ファイルにプロトコルが無い場合には、CodeBase + filename のURLにアクセスします。- パラメータ:
String- ファイル名称(URL)- 戻り値:
- InputStream ファイルのStream
- 例外:
Throwable
-