org.pentaho.di.core.xml
Class XMLCheck

java.lang.Object
  extended by org.pentaho.di.core.xml.XMLCheck

public class XMLCheck
extends Object


Nested Class Summary
static class XMLCheck.XMLTreeHandler
           
 
Constructor Summary
XMLCheck()
           
 
Method Summary
static boolean isXMLFileWellFormed(org.apache.commons.vfs.FileObject file)
          Checks an xml file is well formed.
static boolean isXMLWellFormed(InputStream is)
          Checks an xml string is well formed.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XMLCheck

public XMLCheck()
Method Detail

isXMLFileWellFormed

public static final boolean isXMLFileWellFormed(org.apache.commons.vfs.FileObject file)
                                         throws KettleException
Checks an xml file is well formed.

Parameters:
file - The file to check
Returns:
true if the file is well formed.
Throws:
KettleException

isXMLWellFormed

public static final boolean isXMLWellFormed(InputStream is)
                                     throws KettleException
Checks an xml string is well formed.

Parameters:
is - inputstream
Returns:
true if the xml is well formed.
Throws:
KettleException