Changeset 828
- Timestamp:
- 08/14/10 11:38:25 (18 months ago)
- Files:
-
- 1 modified
-
trunk/src/util/StreamUtils.java (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/util/StreamUtils.java
r744 r828 13 13 14 14 public class StreamUtils { 15 /** 16 * Size of the temporary buffer for reading. 17 */ 15 /** Size of the temporary buffer for reading. */ 18 16 private static int temporary_buffer_size = 64 * 1024; 19 17 … … 36 34 * @param filename the filename 37 35 * @return the content of the file 36 * @throws java.io.IOException if an I/O error occurs 38 37 */ 39 38 public static String readFile(String filename) throws IOException { … … 51 50 * @param filename the filename 52 51 * @return the content of the file 52 * @throws java.io.IOException if an I/O error occurs 53 53 */ 54 54 public static ArrayList<String> readLines(String filename) throws IOException { … … 68 68 * 69 69 * @param fileName resource name / file name (does not have to start with a "/") 70 * @return input stream of the file 71 * @throws java.io.FileNotFoundException if file does not exist 70 72 */ 71 73 public static InputStream getInputStream(String fileName) throws FileNotFoundException { … … 120 122 * @param stream input stream. 121 123 * @return decoded xml string 124 * @throws java.io.IOException if an I/O error occurs 122 125 */ 123 126 public static String readXmlStream(InputStream stream) throws IOException {
![(please configure the [header_logo] section in trac.ini)](http://jlatexeditor.endrullis.de/chrome/site/logo_xmas.png)