it.unimi.di.mg4j.query
Class InputStreamItem
java.lang.Object
javax.servlet.GenericServlet
javax.servlet.http.HttpServlet
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
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 |
InputStreamItem
public InputStreamItem()
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