Package com.dotcms.repackage.org.xml.sax

Examples of com.dotcms.repackage.org.xml.sax.InputSource


  private static class DTDResolver implements EntityResolver {
    public InputSource resolveEntity(String publicId, String systemId) {
      String uri = null;
      if (systemId.startsWith("http:")) {
        ClassLoader cl = Thread.currentThread().getContextClassLoader();
        return new InputSource(cl.getResource("xhtml" + systemId.substring(systemId.lastIndexOf('/'))).getFile());
      } else if (systemId.startsWith("file:")) {
        uri = systemId;
        return new InputSource(uri);
      }
      return null;
    }
View Full Code Here


   * This parser fill the ObjectCustomerWebService bean with the customer information
   */
public static Vector getObjectShippingPrices(String uriXML) {
  try {
   
    InputSource is = new InputSource(new StringReader(uriXML));
    DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
    DocumentBuilder builder = factory.newDocumentBuilder();
    Document document = builder.parse( is );
    objectList = new Vector<UPSResponseObject>();
   
View Full Code Here

      if (publicId.equals(IDS[i].getKey())) {
        InputStream is =
          getClass().getClassLoader().getResourceAsStream(
            "com/liferay/portal/resources/" + IDS[i].getValue());

        return new InputSource(is);

      }
    }

    return null;
View Full Code Here

TOP

Related Classes of com.dotcms.repackage.org.xml.sax.InputSource

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.