Examples of DocumentInputHandler


Examples of com.skaringa.javaxml.handler.sax.DocumentInputHandler

        // use a preprocessor if one is given
        transformer = _preProcessorTemplate.newTransformer();
      } else {
        transformer = _saxTransFact.newTransformer();
      }
      DocumentInputHandler inputHandler = new DocumentInputHandler();
      inputHandler.setProperties(_properties);
      inputHandler.setClassLoader(_classLoader);
      transformer.transform(src, newObjectResult(inputHandler));

      obj = inputHandler.getObject();
    } catch (TransformerConfigurationException e) {
      Log.error(e);
      throw new DeserializerException(e.toString());
    } catch (TransformerException e) {
      Log.error(e);
View Full Code Here

Examples of com.skaringa.javaxml.handler.sax.DocumentInputHandler

      throws SerializerException, DeserializerException {

    Log.info("transform - start "
        + (obj != null ? obj.getClass().getName() : "null"));

    DocumentInputHandler inputHandler = new DocumentInputHandler();
    inputHandler.setProperties(_properties);
    inputHandler.setClassLoader(_classLoader);
    transform(getTransformerHandler(transformationInstruction), obj,
        new ObjectXMLReader(), newObjectResult(inputHandler));

    Log.info("transform - end "
        + (obj != null ? obj.getClass().getName() : "null"));

    return inputHandler.getObject();
  }
View Full Code Here

Examples of com.skaringa.javaxml.handler.sax.DocumentInputHandler

      DeserializerException {

    Log.info("transform - start "
        + (obj != null ? obj.getClass().getName() : "null"));

    DocumentInputHandler inputHandler = new DocumentInputHandler();
    inputHandler.setProperties(_properties);
    inputHandler.setClassLoader(_classLoader);
    transform(getTransformerHandler(_postProcessorTemplate), obj,
        new ObjectXMLReader(), newObjectResult(inputHandler));

    Log.info("transform - end "
        + (obj != null ? obj.getClass().getName() : "null"));

    return inputHandler.getObject();
  }
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.