com.ebmwebsourcing.easycommons.xml
Class SourceHelper

java.lang.Object
  extended by com.ebmwebsourcing.easycommons.xml.SourceHelper

public class SourceHelper
extends java.lang.Object

Author:
"Mathieu CARROLLE - mathieu.carrolle@petalslink.com"

Constructor Summary
SourceHelper()
           
 
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 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
 

Constructor Detail

SourceHelper

public SourceHelper()
Method Detail

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


Copyright © 2011 Petals Link. All Rights Reserved.