- Timestamp:
- 11/18/05 21:25:10 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/org.modelica.mdt.test/src/org/modelica/mdt/test/util/Utility.java
r126 r152 42 42 package org.modelica.mdt.test.util; 43 43 44 import java.io.ByteArrayInputStream; 44 45 import java.io.IOException; 45 46 import java.io.InputStream; … … 298 299 return expectedContent.equals(new String(buf)); 299 300 } 301 302 /** 303 * convinience method to 'convert' a string into a InputStream. 304 * 305 * @return an input stream that have the same content as the provided string 306 */ 307 public static InputStream getByteStream(String content) 308 { 309 return new ByteArrayInputStream(content.getBytes()); 310 } 300 311 301 312 }
Note: See TracChangeset
for help on using the changeset viewer.