/[storm]/storm/org/nongnu/storm/util/CopyUtil.java
ViewVC logotype

Diff of /storm/org/nongnu/storm/util/CopyUtil.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.3 by benja, Sat Apr 19 12:20:32 2003 UTC revision 1.4 by benja, Wed Sep 10 13:20:27 2003 UTC
# Line 90  public class CopyUtil { Line 90  public class CopyUtil {
90      }      }
91    
92      /** Read data from an input stream into a String.      /** Read data from an input stream into a String.
93       *  Most useful for debug output. Encoding is US-ASCII.       *  Most useful for debug output. Default encoding is US-ASCII.
94       */       */
95        static public String readString(InputStream in, String encoding) throws IOException {
96            return new String(readBytes(in), encoding);
97        }
98    
99      static public String readString(InputStream in) throws IOException {      static public String readString(InputStream in) throws IOException {
100          return new String(readBytes(in), "US-ASCII");          return readString(in, "US-ASCII");
101      }      }
102  }  }

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.4

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26