Changeset 11320 in josm for trunk/src/org
- Timestamp:
- 2016-11-26T23:45:05+01:00 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/tools/Utils.java
r11319 r11320 1366 1366 * 1367 1367 * @param stream input stream 1368 * @return byte array of data in input stream 1368 * @return byte array of data in input stream or null if stream is null 1369 1369 * @throws IOException if any I/O error occurs 1370 1370 */ 1371 1371 public static byte[] readBytesFromStream(InputStream stream) throws IOException { 1372 if (stream == null) { 1373 return null; 1374 } 1372 1375 try { 1373 1376 ByteArrayOutputStream bout = new ByteArrayOutputStream(stream.available());
Note:
See TracChangeset
for help on using the changeset viewer.