convert file content to byte[]
(File file)
| 193 | * convert file content to byte[] |
| 194 | */ |
| 195 | public static byte[] getFileAsBytes(File file){ |
| 196 | try { |
| 197 | return Files.toByteArray(file); |
| 198 | } catch (IOException e) { |
| 199 | log.error(e.toString()); |
| 200 | } |
| 201 | return null; |
| 202 | } |
| 203 | |
| 204 | |
| 205 | public static Stream<Path> walk(Path start, int maxDepth, FileVisitOption... options) throws IOException { |
no test coverage detected