1 5 6 package org.infohazard.maverick.flow; 7 8 import java.io.IOException ; 9 import java.io.Writer ; 10 import java.io.Reader ; 11 import javax.servlet.ServletException ; 12 import javax.servlet.http.HttpServletResponse ; 13 import javax.xml.transform.Source ; 14 import org.xml.sax.ContentHandler ; 15 16 25 public interface TransformStep 26 { 27 32 public boolean isLast(); 33 34 42 public void setContentType(String contentType); 43 44 47 public ContentHandler getSAXHandler() throws IOException , ServletException ; 48 49 52 public HttpServletResponse getResponse() throws IOException , ServletException ; 53 54 57 public Writer getWriter() throws IOException , ServletException ; 58 59 62 public void done() throws IOException , ServletException ; 63 64 71 74 public void go(Source input) throws IOException , ServletException ; 75 76 79 public void go(Reader input) throws IOException , ServletException ; 80 81 84 public void go(String input) throws IOException , ServletException ; 85 } 86 | Popular Tags |