Removing Files dependency on libjre_channels
@@ -3154,14 +3154,16 @@ public final class Files {
* method is invoked to check read access to the file.
*/
public static byte[] readAllBytes(Path path) throws IOException {
- try (SeekableByteChannel sbc = Files.newByteChannel(path);
- InputStream in = Channels.newInputStream(sbc)) {
- long size = sbc.size();
- if (size > (long)MAX_BUFFER_SIZE)
- throw new OutOfMemoryError("Required array size too large");
-
- return read(in, (int)size);
- }
+ return null;
+// TODO(amisail) uncomment this when working
+// try (SeekableByteChannel sbc = Files.newByteChannel(path);
+// InputStream in = Channels.newInputStream(sbc)) {
+// long size = sbc.size();
+// if (size > (long)MAX_BUFFER_SIZE)
+// throw new OutOfMemoryError("Required array size too large");
+//
+// return read(in, (int)size);
+// }
}
/**
