|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--cac_tool.ReadWrite
The ReadWrite class is able to read form file or url and to write a string to a file.
Constructor Summary | |
ReadWrite()
Initializes a newly created ReadWrite object. |
|
ReadWrite(CacTool cac)
Initializes a ReadWrite object with reference to CacTool |
Method Summary | |
java.lang.StringBuffer |
getContent()
Gets the content of the StringBuffer |
int |
getLineCount()
Gets the number of lines the file contains |
java.lang.StringBuffer |
getURLContent(java.lang.String link)
Reads the content out a of file or URL |
void |
writeToFile(java.io.File file,
java.lang.String sb1)
Writes the string to the specified file |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ReadWrite()
public ReadWrite(CacTool cac)
cac
- reference to CacToolMethod Detail |
public java.lang.StringBuffer getURLContent(java.lang.String link)
link
- the URL of file to open
public int getLineCount()
public java.lang.StringBuffer getContent()
public void writeToFile(java.io.File file, java.lang.String sb1)
file
- name of the filesb1
- a string to save in file
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |