Package org.pentaho.platform.api.util

Examples of org.pentaho.platform.api.util.XmlParseException


    throws XmlParseException {
    Document document = null;
    try {
      document = XmlDom4JHelper.getDocFromStream( new ByteArrayInputStream( strXml.getBytes() ), resolver );
    } catch ( DocumentException e ) {
      throw new XmlParseException( Messages.getInstance().getErrorString(
          "XmlDom4JHelper.ERROR_0001_UNABLE_TO_GET_DOCUMENT_FROM_STRING" ), e ); //$NON-NLS-1$
    } catch ( IOException e ) {
      throw new XmlParseException( Messages.getInstance().getErrorString(
          "XmlDom4JHelper.ERROR_0002_UNSUPPORTED_ENCODING" ), e ); //$NON-NLS-1$
    }
    return document;
  }
View Full Code Here

TOP

Related Classes of org.pentaho.platform.api.util.XmlParseException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.