Package javax.xml.transform

Examples of javax.xml.transform.Transformer.reset()


        }
        finally
        {
            try
            {
                transformer.reset();
                transformers.put(transformer);
            }
            catch (final InterruptedException e)
            {
                throw new ActionProcessingException(e.getMessage(), e);
View Full Code Here


  {
    StringWriter writer= new StringWriter();
    try
    {
      Transformer transformer= getTransformer(xsltFileName);
      transformer.reset();
      if (xsltParams != null)
      {
        for (int i= 0; i < xsltParams.length; i++)
          transformer.setParameter(xsltParams[i][0], xsltParams[i][1]);
      }
View Full Code Here

  {
    StringWriter writer= new StringWriter();
    try
    {
      Transformer transformer= getTransformer(xsltFileName);
      transformer.reset();
      if (xsltParams != null)
      {
        for (int i= 0; i < xsltParams.length; i++)
          transformer.setParameter(xsltParams[i][0], xsltParams[i][1]);
      }
View Full Code Here

        finally
        {
          try
          {
              transformer.clearParameters();
              transformer.reset();
              parameters.clear();
              outputParameters.clear();
          }
          catch (NoSuchMethodError e)
          {
View Full Code Here

    public static void transform(Source xmlSource, Result outputTarget) throws TransformerException {
        Transformer t = transformer();
        try {
            t.transform(xmlSource, outputTarget);
        } finally {
            t.reset();
        }
    }

    public static void transform(Source xsltSource, Source xmlSource, Result outputTarget) throws TransformerException {
        Transformer t = transformer(xsltSource);
View Full Code Here

    public static void transform(Source xsltSource, Source xmlSource, Result outputTarget) throws TransformerException {
        Transformer t = transformer(xsltSource);
        try {
            t.transform(xmlSource, outputTarget);
        } finally {
            t.reset();
        }
    }

    public static XMLReader xmlReader() throws ParserConfigurationException, SAXException {
        SAXParserFactory spf = SAX_PARSER_FACTORY.get();
View Full Code Here

        }
    }
   
    private DOMResult tryXsltTransformation(ThreadContext context, IRubyObject[] args, DOMSource domSource, NokogiriXsltErrorListener elistener) throws TransformerException {
        Transformer transf = sheet.newTransformer();
        transf.reset();
        transf.setErrorListener(elistener);
        if (args.length > 1) {
            addParametersToTransformer(context, transf, args[1]);
        }
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.