org.infohazard.maverick.flow
Interface TransformStep

All Known Implementing Classes:
AbstractTransformStep

public interface TransformStep

The TransformStep defines a transformation step in a single request. It is used and then disposed of. It provides convenient facades for most of the usual output mechanisms that views and previous transforms might want. Unlike a Transform, a TransformStep is used in a single request and then thrown away.


Method Summary
 void done()
          This should be called after writing is complete.
 javax.servlet.http.HttpServletResponse getResponse()
          Must calle done() when finished.
 org.xml.sax.ContentHandler getSAXHandler()
          Must calle done() when finished.
 java.io.Writer getWriter()
          Must calle done() when finished.
 void go(java.io.Reader input)
          This is available if it is more convenient.
 void go(javax.xml.transform.Source input)
          This is available if it is more convenient.
 void go(java.lang.String input)
          This is available if it is more convenient.
 boolean isLast()
          Your steps should always return false.
 

Method Detail

isLast

public boolean isLast()
Your steps should always return false. The last step, which is not really a step at all - it's the real output stream, will return true.


getSAXHandler

public org.xml.sax.ContentHandler getSAXHandler()
                                         throws java.io.IOException,
                                                javax.servlet.ServletException
Must calle done() when finished.

java.io.IOException
javax.servlet.ServletException

getResponse

public javax.servlet.http.HttpServletResponse getResponse()
                                                   throws java.io.IOException,
                                                          javax.servlet.ServletException
Must calle done() when finished.

java.io.IOException
javax.servlet.ServletException

getWriter

public java.io.Writer getWriter()
                         throws java.io.IOException,
                                javax.servlet.ServletException
Must calle done() when finished.

java.io.IOException
javax.servlet.ServletException

done

public void done()
          throws java.io.IOException,
                 javax.servlet.ServletException
This should be called after writing is complete.

java.io.IOException
javax.servlet.ServletException

go

public void go(javax.xml.transform.Source input)
        throws java.io.IOException,
               javax.servlet.ServletException
This is available if it is more convenient.

java.io.IOException
javax.servlet.ServletException

go

public void go(java.io.Reader input)
        throws java.io.IOException,
               javax.servlet.ServletException
This is available if it is more convenient.

java.io.IOException
javax.servlet.ServletException

go

public void go(java.lang.String input)
        throws java.io.IOException,
               javax.servlet.ServletException
This is available if it is more convenient.

java.io.IOException
javax.servlet.ServletException