Examples of FragmentTransformationException


Examples of org.jzkit.search.util.RecordConversion.FragmentTransformationException

      metadata.addContent(jdomDoc.detachRootElement());
      root.addContent(metadata);
      elem = Xml.transform(root, stylesheet);
     
    } catch (Exception e) {
      throw new FragmentTransformationException(e.getMessage());
    }
   
    // give back a DOM document with html as text (suits jzkit which expects
    // html output to be text because parsing may not work)
    Document output = null;
    try {
      output = htmldb.newDocument();
      Element root = output.createElement("HTML");
      root.appendChild( output.createTextNode(Xml.getString(elem)));
      output.appendChild( root );
    } catch ( Exception e ) {
      throw new FragmentTransformationException(e.getMessage());
    }

    return output;
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.