it.unimi.di.mg4j.query
Class InputStreamItem

java.lang.Object
  extended by javax.servlet.GenericServlet
      extended by javax.servlet.http.HttpServlet
          extended by it.unimi.di.mg4j.query.InputStreamItem
All Implemented Interfaces:
Serializable, Servlet, ServletConfig

public class InputStreamItem
extends HttpServlet

An item serving a raw input stream from the document collection.

This kind of QueryServlet item will load into the browser the stream returned by the document collection for the given document. Using the system property it.unimi.di.mg4j.query.InputStreamItem.skip, you can set a number of sub-input streams that will be skipped by calling InputStream.reset() (see it.unimi.di.mg4j.document).

See Also:
Serialized Form

Constructor Summary
InputStreamItem()
           
 
Method Summary
protected  void doGet(HttpServletRequest request, HttpServletResponse response)
           
protected  void doPost(HttpServletRequest request, HttpServletResponse response)
           
 
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, service
 
Methods inherited from class javax.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, init, log, log
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InputStreamItem

public InputStreamItem()
Method Detail

doGet

protected void doGet(HttpServletRequest request,
                     HttpServletResponse response)
              throws IOException
Overrides:
doGet in class HttpServlet
Throws:
IOException

doPost

protected void doPost(HttpServletRequest request,
                      HttpServletResponse response)
               throws IOException
Overrides:
doPost in class HttpServlet
Throws:
IOException