1 5 6 package org.infohazard.maverick.transform; 7 8 import org.infohazard.maverick.flow.*; 9 import java.io.*; 10 import javax.servlet.ServletException ; 11 import javax.xml.transform.Source ; 12 import org.xml.sax.ContentHandler ; 13 14 18 public abstract class XMLTransformStep extends AbstractTransformStep 19 { 20 22 public XMLTransformStep(TransformContext tctx) throws ServletException 23 { 24 super(tctx); 25 } 26 27 30 public abstract ContentHandler getSAXHandler() throws IOException, ServletException ; 31 32 35 public abstract void done() throws IOException, ServletException ; 36 37 40 public abstract void go(Source input) throws IOException, ServletException ; 41 42 45 public void go(Reader input) throws IOException, ServletException 46 { 47 this.go(new javax.xml.transform.stream.StreamSource (input)); 48 } 49 50 53 public void go(String input) throws IOException, ServletException 54 { 55 this.go(new StringReader(input)); 56 } 57 } 58 | Popular Tags |