Skip to content

Commit 2e0e849

Browse files
committed
StreamToBytes and StreamToString moved to javajs.util.reader
1 parent b0179af commit 2e0e849

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

15 Bytes
Binary file not shown.

sources/net.sf.j2s.java.core/src/javajs/util/Rdr.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ public static byte[] streamToBytes(InputStream is) throws IOException {
110110
* @throws IOException
111111
*/
112112
public static String streamToString(InputStream is) throws IOException {
113-
return new String(Rdr.streamToBytes(is));
113+
return new String(streamToBytes(is));
114114
}
115115

116116
public static Map<String, Object> readCifData(GenericCifDataParser parser, BufferedReader br) {
@@ -350,7 +350,7 @@ public static BufferedReader getBR(String string) {
350350

351351
public static BufferedInputStream toBIS(Object o) {
352352
return (AU.isAB(o) ? getBIS((byte[]) o)
353-
: o instanceof SB ? getBIS(Rdr.getBytesFromSB((SB) o))
353+
: o instanceof SB ? getBIS(getBytesFromSB((SB) o))
354354
: o instanceof String ? getBIS(((String) o).getBytes()) : null);
355355
}
356356

0 commit comments

Comments
 (0)