|
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
|
+--com.ninecode.email.beans.slave.stock.StockBean
Fetch stock info from etrade.ca.
| Field Summary | |
protected String |
mExchange
The exchange. |
protected String |
mTicker
The stock ticker symbol. |
| Fields inherited from class com.ninecode.email.util.WebBean |
mBufferSize, mUrl, newline, newline_size |
| Constructor Summary | |
StockBean()
Creates a new instance of StockBean |
|
| Method Summary | |
protected byte[] |
fetch()
Override fetch to do POST operation. |
static byte[] |
get(InputStream in)
Return the contents of a stream. |
String |
getContent(boolean links)
|
String |
getExchange()
Getter for property exchange. |
String |
getExchangeString()
Get the exchange as a string. |
String |
getText()
|
String |
getTicker()
Getter for property Ticker. |
String |
help()
|
static void |
main(String[] args)
Unit test. |
void |
setExchange(String exchange)
Setter for property exchange. |
void |
setText(String text)
|
void |
setTicker(String ticker)
Setter for property Ticker. |
String |
toString()
Generate a string representing the state of this bean. |
| Methods inherited from class com.ninecode.email.util.WebBean |
carriage_return, collapse, getContent, getContent, getURL, setURL |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
protected String mTicker
protected String mExchange
| Constructor Detail |
public StockBean()
| Method Detail |
public String getTicker()
public void setTicker(String ticker)
public String getExchange()
public void setExchange(String exchange)
exchange - New value of property exchange.public String getExchangeString()
public String help()
public void setText(String text)
public static byte[] get(InputStream in)
throws IOException
in - The stream to drain.
IOExceptionpublic String getContent(boolean links)
getContent in class WebBean
protected byte[] fetch()
throws IOException
IOExceptionpublic String getText()
public String toString()
toString in class WebBeanEdmonton Alberta
public static void main(String[] args)
args - The free form argument that is the ticker symbol to get a
quote for in args[0].
|
Email Answering System Version 1.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||