| |
|
| java.lang.Object com.sun.j3d.utils.shader.StringIO
StringIO | public class StringIO (Code) | | Utility class with static methods to read the entire contents of a
file, URL, InputStream, or Reader into a single String that is
returned to the user.
since: Java 3D 1.4 |
Method Summary | |
public static String | readFully(String fileName) Read the entire contents of the specified file and return a
single String object containing the contents of the file. | public static String | readFully(File file) Read the entire contents of the specified file and return a
single String object containing the contents of the file. | public static String | readFully(URL url) Read the entire contents of the specified URL and return a
single String object containing the contents of the URL. | public static String | readFully(InputStream stream) Read the entire contents of the specified InputStream and return a
single String object containing the contents of the InputStream. | public static String | readFully(Reader reader) Read the entire contents of the specified Reader and return a
single String object containing the contents of the InputStream. |
readFully | public static String readFully(String fileName) throws IOException(Code) | | Read the entire contents of the specified file and return a
single String object containing the contents of the file.
Parameters: fileName - the name of the file from which to read a String containing the contents of the input file throws: IOException - if the specified file cannot be opened, orif an I/O error occurs while reading the file |
readFully | public static String readFully(File file) throws IOException(Code) | | Read the entire contents of the specified file and return a
single String object containing the contents of the file.
This method does not return until the end of the input file
is reached.
Parameters: file - a File from which to read a String containing the contents of the input file throws: IOException - if the specified file cannot be opened, orif an I/O error occurs while reading the file |
readFully | public static String readFully(URL url) throws IOException(Code) | | Read the entire contents of the specified URL and return a
single String object containing the contents of the URL.
This method does not return until an end of stream is reached
for the URL.
Parameters: url - a URL from which to read a String containing the contents of the input URL throws: IOException - if the specified URL cannot be opened, orif an I/O error occurs while reading the URL |
readFully | public static String readFully(InputStream stream) throws IOException(Code) | | Read the entire contents of the specified InputStream and return a
single String object containing the contents of the InputStream.
This method does not return until the end of the input
stream is reached.
Parameters: stream - an InputStream from which to read a String containing the contents of the input stream throws: IOException - if an I/O error occurs while reading the input stream |
readFully | public static String readFully(Reader reader) throws IOException(Code) | | Read the entire contents of the specified Reader and return a
single String object containing the contents of the InputStream.
This method does not return until the end of the input file or
stream is reached.
Parameters: reader - a Reader from which to read a String containing the contents of the stream throws: IOException - if an I/O error occurs while reading the input stream |
|
|
|