This commit is contained in:
hyb1996
2018-02-12 10:30:29 +08:00
parent 28333c2a3e
commit 79900f43da
9 changed files with 88 additions and 39 deletions

View File

@@ -460,4 +460,11 @@ public class PFiles {
return path;
}
public static byte[] readBytes(String path) {
try {
return readBytes(new FileInputStream(path));
} catch (FileNotFoundException e) {
throw new UncheckedIOException(e);
}
}
}