|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--ca.cbc.sportwire.feed.ESPNFeed
ESPNFeed.java Read the Compat ESPN stream format into a buffer and provide a string reader over the spooled story. This is a singleton class that reads from stdin, breaking the input at ^V^V^A sequences.
Created: Mon Nov 12 16:14:22 2001
Field Summary | |
(package private) static org.apache.log4j.Category |
cat
Deprecated. |
private org.apache.commons.collections.ExtendedProperties |
config
Deprecated. |
(package private) static org.apache.oro.text.regex.Pattern |
datepattern
Deprecated. |
(package private) static org.apache.oro.text.regex.Substitution |
datesub
Deprecated. |
private static ESPNFeed |
feeder
Deprecated. singleton constructor |
private java.io.BufferedReader |
in
Deprecated. |
private java.lang.String |
lastTag
Deprecated. |
private java.lang.StringBuffer |
storybuffer
Deprecated. |
(package private) static org.apache.oro.text.regex.Pattern |
tagpattern
Deprecated. |
Fields inherited from interface ca.cbc.sportwire.feed.ESPNFeedProperties |
CTRLA, CTRLB, CTRLD, CTRLH, CTRLK, CTRLL, ESPN_AUTHHOST_PROPERTY, ESPN_AUTHKEY_PROPERTY, ESPN_AUTHPORT_PROPERTY, ESPN_AUTHUSER_PROPERTY, ESPN_HOST_PROPERTY, ESPN_IDLE_DEFAULT, ESPN_IDLE_PROPERTY, ESPN_SOURCE_DEFAULT, ESPN_SOURCE_PROPERTY, ESPN_SPOOL_PROPERTY, PAGEBREAK |
Constructor Summary | |
protected |
ESPNFeed(org.apache.commons.collections.ExtendedProperties sc)
Deprecated. |
Method Summary | |
protected int |
bufferStory()
Deprecated. Describe bufferStory method here. |
protected java.lang.String |
fixupXml(java.lang.String line)
Deprecated. fixupXml : Sportsticker XML contains errors that
will not parse with standard XML tools like Xerces. |
protected org.apache.commons.collections.ExtendedProperties |
getConfig()
Deprecated. Get the value of config. |
static SportwireFeed |
getInstance(org.apache.commons.collections.ExtendedProperties sc)
Deprecated. getInstance returns the Singleton, synchronized to
protect against concurrent invocations. |
java.lang.String |
getLastTag()
Deprecated. getLastTag returns a meaningful name of the last
story read through the Reader |
java.lang.String |
getStatus()
Deprecated. getStatus : return a status string reporting on the
state of the feed parser; used by the XMLRPC status monitor |
private java.lang.StringBuffer |
getStorybuffer()
Deprecated. |
void |
skipToNext()
Deprecated. |
java.io.Reader |
storyReader()
Deprecated. Method: 'storyReader' provides a StringReader over the internal story buffer. |
Methods inherited from class java.lang.Object |
|
Field Detail |
static org.apache.log4j.Category cat
private org.apache.commons.collections.ExtendedProperties config
private java.lang.String lastTag
private java.io.BufferedReader in
private java.lang.StringBuffer storybuffer
private static ESPNFeed feeder
static org.apache.oro.text.regex.Pattern tagpattern
static org.apache.oro.text.regex.Pattern datepattern
static org.apache.oro.text.regex.Substitution datesub
Constructor Detail |
protected ESPNFeed(org.apache.commons.collections.ExtendedProperties sc)
Method Detail |
protected org.apache.commons.collections.ExtendedProperties getConfig()
public java.lang.String getStatus()
SportwireFeed
getStatus
: return a status string reporting on the
state of the feed parser; used by the XMLRPC status monitorgetStatus
in interface SportwireFeed
ca.cbc.sportwire.feed.SportwireFeed
String
valuepublic java.lang.String getLastTag()
SportwireFeed
getLastTag
returns a meaningful name of the last
story read through the ReadergetLastTag
in interface SportwireFeed
ca.cbc.sportwire.feed.SportwireFeed
String
valueprivate java.lang.StringBuffer getStorybuffer()
public static SportwireFeed getInstance(org.apache.commons.collections.ExtendedProperties sc)
getInstance
returns the Singleton, synchronized to
protect against concurrent invocations.SportwireFeed
valueprotected java.lang.String fixupXml(java.lang.String line)
fixupXml
: Sportsticker XML contains errors that
will not parse with standard XML tools like Xerces. As each
line is read, it passes through this method where ampersands
and other illegal chars are replaced and the strange ESPN date
format is re-arranged into something more friendly to Java and
RDBMS. As time goes on, there are likely to be more patches
tucked into this method. This method also picks out the lastTag.line
- a String
valueString
valuepublic void skipToNext() throws java.io.IOException
skipToNext
in interface SportwireFeed
java.io.IOException
- if a read error occursprotected int bufferStory() throws java.io.IOException
bufferStory
method here.java.io.IOException
- if an error occurspublic java.io.Reader storyReader() throws java.io.IOException
storyReader
in interface SportwireFeed
java.io.IOException
- if an error occurs
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Javadocs generated Tue Apr 23 01:08:36 EDT 2002 by garym@maya.dyndns.org
Copyright © 2002 Canadian Broadcasting Corp