Class prominence.url.TextPlainContentHandler
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class prominence.url.TextPlainContentHandler

java.lang.Object
   |
   +----java.net.ContentHandler
           |
           +----prominence.url.TextPlainContentHandler

public class TextPlainContentHandler
extends ContentHandler
A ContentHandler that supports the MIME-type "text/plain", returning a String object.

Constructor Index

 o TextPlainContentHandler()

Method Index

 o getContent(URLConnection)
Returns a String consisting of the contents of the specified URLConnection surrounded by a header and footer.

Constructors

 o TextPlainContentHandler
  public TextPlainContentHandler()

Methods

 o getContent
  public Object getContent(URLConnection urlc) throws IOException
Returns a String consisting of the contents of the specified URLConnection surrounded by a header and footer.
Parameters:
urlc - The URLConnection from which to read
Returns:
s The contents of the URLConnection as a String
Throws: IOException
occurs if there is a problem collecting the object.
Overrides:
getContent in class ContentHandler

All Packages  Class Hierarchy  This Package  Previous  Next  Index