|
Email Answering System Version 1.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.ninecode.email.util.WebBean
Fetches a web page and turns it into text.
Field Summary | |
protected static int |
mBufferSize
|
protected String |
mUrl
|
static String |
newline
|
static int |
newline_size
|
Constructor Summary | |
WebBean()
Creates a new instance of WebBean |
Method Summary | |
protected void |
carriage_return(StringBuffer buffer)
Appends a newline to the buffer if there isn't one there already. |
protected void |
collapse(StringBuffer buffer,
String string)
Add the given text collapsing whitespace. |
String |
getContent()
|
String |
getContent(boolean links)
|
protected String |
getContent(org.htmlparser.HTMLParser parser,
boolean links)
|
String |
getURL()
|
void |
setURL(String url)
|
String |
toString()
Generate a string representing the state of this bean. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected String mUrl
public static final String newline
public static final int newline_size
protected static final int mBufferSize
Constructor Detail |
public WebBean()
Method Detail |
public void setURL(String url)
public String getURL()
public String getContent()
protected void carriage_return(StringBuffer buffer)
buffer
- The buffer to append to.protected void collapse(StringBuffer buffer, String string)
state 0: whitepace was last emitted character state 1: in whitespace state 2: in word A whitespace character moves us to state 1 and any other character moves us to state 2, except that state 0 stays in state 0 until a non-whitespace and going from whitespace to word we emit a space before the character: input: whitespace other-character state\next 0 0 2 1 1 space then 2 2 1 2
buffer
- The buffer to append to.string
- The string to append.public String getContent(boolean links)
protected String getContent(org.htmlparser.HTMLParser parser, boolean links)
public String toString()
toString
in class Object
http://www.cbc.ca
|
Email Answering System Version 1.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |