Show
Ignore:
Timestamp:
08/14/10 11:38:25 (22 months ago)
Author:
stefan
Message:

added javadoc

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/util/StreamUtils.java

    r744 r828  
    1313 
    1414public class StreamUtils { 
    15   /** 
    16    * Size of the temporary buffer for reading. 
    17    */ 
     15  /** Size of the temporary buffer for reading. */ 
    1816  private static int temporary_buffer_size = 64 * 1024; 
    1917 
     
    3634   * @param filename the filename 
    3735   * @return the content of the file 
     36   * @throws java.io.IOException if an I/O error occurs 
    3837   */ 
    3938  public static String readFile(String filename) throws IOException { 
     
    5150   * @param filename the filename 
    5251   * @return the content of the file 
     52   * @throws java.io.IOException if an I/O error occurs 
    5353   */ 
    5454  public static ArrayList<String> readLines(String filename) throws IOException { 
     
    6868   * 
    6969   * @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 
    7072   */ 
    7173  public static InputStream getInputStream(String fileName) throws FileNotFoundException { 
     
    120122   * @param stream input stream. 
    121123   * @return decoded xml string 
     124   * @throws java.io.IOException if an I/O error occurs 
    122125   */ 
    123126  public static String readXmlStream(InputStream stream) throws IOException {