/projects/exoportal-v1.0.2/services/xml-processing/api/src/java/org/exoplatform/services/xml/transform/AbstractTransformer.java

https://gitlab.com/essere.lab.public/qualitas.class-corpus · Java · 42 lines · 9 code · 5 blank · 28 comment · 0 complexity · 46d037ee8702ce51390e49f797d5e70f MD5 · raw file

  1. /***************************************************************************
  2. * Copyright 2001-2005 The eXo Platform SARL All rights reserved. *
  3. * Please look at license.txt in info directory for more license detail. *
  4. **************************************************************************/
  5. package org.exoplatform.services.xml.transform;
  6. import javax.xml.transform.Source;
  7. import javax.xml.transform.Result;
  8. import javax.xml.transform.TransformerException;
  9. /**
  10. * Created by The eXo Platform SARL .
  11. *
  12. * @author <a href="mailto:geaz@users.sourceforge.net">Gennady Azarenkov</a>
  13. * @author <a href="mailto:alex.kravchuk@gmail.com">Alexander Kravchuk</a>
  14. * @version $Id: AbstractTransformer.java 565 2005-01-25 12:48:13Z kravchuk $
  15. */
  16. public interface AbstractTransformer {
  17. /**
  18. * Initialize a result of transformation
  19. *
  20. * @param result Result
  21. * @throws NotSupportedIOTypeException if try to initialize with
  22. * not supported implementation of Result
  23. */
  24. void initResult(Result result) throws NotSupportedIOTypeException;
  25. /**
  26. * Transform source data to result
  27. *
  28. * @param source Source - input of transformation
  29. *
  30. * @throws NotSupportedIOTypeException if not supported implementation
  31. * of Source
  32. * @throws TransformerException if error occurred on transformation process
  33. * @throws IllegalStateException if result not initialized by initResult
  34. */
  35. void transform(Source source) throws NotSupportedIOTypeException,
  36. TransformerException, IllegalStateException;
  37. }