|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Object | +--FileIOPRP
Class FileIOPRP.java - used to read file I/O from local disk or URL CGI server. This work was produced by Peter Lemkin of the National Cancer Institute, an agency of the United States Government and Djamel Medjahed (SAIC-Frederick). As a work of the United States Government there is no associated copyright. It is offered as open source software under the Mozilla Public License (version 1.1) subject to the limitations noted in the accompanying LEGAL file.
This work was derived from MAExplorer under the Mozilla 1.1 Open Source Public License by Peter Lemkin of the National Cancer Institute, an agency of the United States Government subject to the limitations noted in the accompanying LEGAL file. See licence info on http://maexplorer.sourceforge.org/
| Field Summary | |
private ProtPlot |
prp
instance of ProtPlot |
private UtilPRP |
util
instance of UtilPRP |
| Constructor Summary | |
(package private) |
FileIOPRP(ProtPlot prp)
FileIOPRP() - constructor |
| Method Summary | |
java.lang.String[] |
getFilesInDir(java.lang.String dir,
java.lang.String ext)
getFilesInDir() - get list of files in directory with specified file extension |
java.lang.String |
readData(java.lang.String fileName,
java.lang.String msg)
readData() - read data from URL or file depending on prefix. |
java.lang.String |
readFileFromDisk(java.lang.String fileName)
readFileFromDisk() - Will read file from disk & returns as String Return null if failed. |
java.lang.String |
readFileFromUrl(java.lang.String URLaddress)
readFileFromUrl() - read data from http URL, using JavaCGIBridge If the code has "\r\n", then map them to "\n". |
(package private) boolean |
writeFileToDisk(java.lang.String fileName,
java.lang.String data)
writeFileToDisk() - write string data to a local disk file. |
| Methods inherited from class java.lang.Object |
|
| Field Detail |
private ProtPlot prp
private UtilPRP util
| Constructor Detail |
FileIOPRP(ProtPlot prp)
prp - is instance of ProtPlot| Method Detail |
public java.lang.String readData(java.lang.String fileName,
java.lang.String msg)
fileName - to readmsg - to display while readingpublic java.lang.String readFileFromDisk(java.lang.String fileName)
public java.lang.String readFileFromUrl(java.lang.String URLaddress)
URLaddress - to read web page as string from server
boolean writeFileToDisk(java.lang.String fileName,
java.lang.String data)
fileName - is the full path filename to write the datadata - is the string to write to the file.
public java.lang.String[] getFilesInDir(java.lang.String dir,
java.lang.String ext)
dir - directory to readext - is the file exteneions (e.g. ".prp") to match if not null, else
accept all files
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||