com.ebmwebsourcing.easycommons.xml
Class SourceHelper
java.lang.Object
com.ebmwebsourcing.easycommons.xml.SourceHelper
public class SourceHelper
- extends java.lang.Object
- Author:
- Mathieu CARROLLE - EBM WebSourcing
|
Method Summary |
static javax.xml.transform.Source |
fork(javax.xml.transform.Source source)
Fork, if necessary, a Source so that consuming the forked one
does not consume the original one. |
static org.xml.sax.InputSource |
sourceToInputSource(javax.xml.transform.Source source,
java.lang.String publicId,
java.lang.String systemId)
Utility to get the bytes uri |
static void |
toFile(javax.xml.transform.Source source,
java.io.File fileToWrite)
|
static java.lang.String |
toString(javax.xml.transform.Source source)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SourceHelper
public SourceHelper()
toFile
public static void toFile(javax.xml.transform.Source source,
java.io.File fileToWrite)
throws javax.xml.transform.TransformerException,
java.io.IOException
- Throws:
javax.xml.transform.TransformerException
java.io.IOException
toString
public static java.lang.String toString(javax.xml.transform.Source source)
throws javax.xml.transform.TransformerException
- Throws:
javax.xml.transform.TransformerException
fork
public static javax.xml.transform.Source fork(javax.xml.transform.Source source)
throws java.io.IOException
- Fork, if necessary, a
Source so that consuming the forked one
does not consume the original one.
- Parameters:
source - Source to be forked.
- Returns:
- Forked
Source.
- Throws:
java.io.IOException
sourceToInputSource
public static org.xml.sax.InputSource sourceToInputSource(javax.xml.transform.Source source,
java.lang.String publicId,
java.lang.String systemId)
- Utility to get the bytes uri
- Parameters:
source - the resource to getresolvedUri - publicId -
Copyright © 2012 Petals Link. All Rights Reserved.