|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.strbio.IO
public final class IO
A class containing some useful IO functions which don't really merit their own classes.
Version 1.2, 3/13/1 - added getURLData Version 1.1, 7/9/99 - added openReaderResource, openStreamResource Version 1.0, 5/21/98 - original version
Constructor Summary | |
---|---|
IO()
|
Method Summary | |
---|---|
static java.lang.String |
getURLData(java.net.URL url,
java.lang.String query,
java.lang.String serverName,
Printf outfile)
Get raw data from a web server, as a string. |
static boolean |
inPath(java.lang.String programName)
Check to see if a program is in your path. |
static java.io.BufferedReader |
openReader(java.lang.String fileName)
Open a file with transparent gunzipping. |
static java.io.BufferedReader |
openReaderResource(java.lang.String fileName,
java.lang.Object parent)
Open a file stored somewhere in the CLASSPATH (a resource, in Java terms). |
static java.io.BufferedInputStream |
openStream(java.lang.String fileName)
Open a file with transparent gunzipping. |
static java.io.BufferedInputStream |
openStreamResource(java.lang.String fileName,
java.lang.Object parent)
Open a file stored somewhere in the CLASSPATH (a resource, in Java terms). |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public IO()
Method Detail |
---|
public static final boolean inPath(java.lang.String programName)
public static final java.io.BufferedReader openReader(java.lang.String fileName) throws java.io.IOException
java.io.IOException
public static final java.io.BufferedInputStream openStream(java.lang.String fileName) throws java.io.IOException
java.io.IOException
public static final java.io.BufferedInputStream openStreamResource(java.lang.String fileName, java.lang.Object parent) throws java.io.IOException
parent
- the name of the file must be specified relative
to the directory the parent object is found in.
java.io.IOException
public static final java.io.BufferedReader openReaderResource(java.lang.String fileName, java.lang.Object parent) throws java.io.IOException
parent
- the name of the file must be specified relative
to the directory the parent object is found in.
java.io.IOException
public static final java.lang.String getURLData(java.net.URL url, java.lang.String query, java.lang.String serverName, Printf outfile)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |