MCPcopy Create free account
hub / github.com/Maschell/JNUSTool / decryptAsByte

Method decryptAsByte

src/de/mas/jnustool/util/Decryption.java:382–391  ·  view source on GitHub ↗
(FEntry fileEntry,String outputPath)

Source from the content-addressed store, hash-verified

380
381
382 public byte[] decryptAsByte(FEntry fileEntry,String outputPath) throws IOException {
383 InputStream input = new FileInputStream(fileEntry.getContentPath());
384 ByteArrayOutputStream bos = new ByteArrayOutputStream();
385
386 decryptStream(input,bos,fileEntry);
387
388 byte[] result = bos.toByteArray();
389 bos.close();
390 return result;
391 }
392
393 public byte[] decryptContent(FEntry fileEntry,String outputPath) throws IOException {
394 InputStream input = new FileInputStream(fileEntry.getContentPath());

Callers 1

getAsByteArrayMethod · 0.95

Calls 2

decryptStreamMethod · 0.95
getContentPathMethod · 0.45

Tested by

no test coverage detected