|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
java.lang.Object | +--demo.webcab.chat.gui.WebFile
This class encapsulates a URL text file reader. It takes the file
name at construction and reads line by line from the stream with
readLine.
| Constructor Summary | |
WebFile(java.lang.String fileName)
Creates a new text file which reads its data from the given URL. |
|
| Method Summary | |
void |
close()
Closes the stream. |
java.lang.String |
readLine()
Gets the next line from the text stream or a null pointer in case of an error or when the EOF has been reached. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public WebFile(java.lang.String fileName)
throws java.net.MalformedURLException,
java.io.IOException
String.fileName - the string representing the URL.readLine()| Method Detail |
public java.lang.String readLine()
IOExceptions internally.close()public void close()
readLine
method will return null.
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||