org.osjava.scraping
Class MemoryPage

java.lang.Object
  extended byorg.osjava.scraping.AbstractPage
      extended byorg.osjava.scraping.MemoryPage
All Implemented Interfaces:
Page

public class MemoryPage
extends AbstractPage

An in memory representation of a page. An alternative to this would be to have a Page that sits on top of a reader, but currently nothing bothers.


Constructor Summary
MemoryPage(java.lang.String page, java.lang.String type)
           
 
Method Summary
 java.io.Reader read()
           
 
Methods inherited from class org.osjava.scraping.AbstractPage
fetch, getDocumentBase, getType, readAsString, setDocumentBase, setType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MemoryPage

public MemoryPage(java.lang.String page,
                  java.lang.String type)
Method Detail

read

public java.io.Reader read()
                    throws java.io.IOException
Specified by:
read in interface Page
Specified by:
read in class AbstractPage
Throws:
java.io.IOException


Copyright © 2003-2005 OSJava. All Rights Reserved.