From 847ed71ae10cebe9ae9cc075832bcb5e92a20246 Mon Sep 17 00:00:00 2001 From: Maschell Date: Sat, 6 Apr 2019 16:50:36 +0200 Subject: [PATCH] Add wrapper a wrapper function to get chunk of data from a content to the ExtractionsService --- src/de/mas/wiiu/jnus/ExtractionService.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/de/mas/wiiu/jnus/ExtractionService.java b/src/de/mas/wiiu/jnus/ExtractionService.java index e3caef7..e29b7a5 100644 --- a/src/de/mas/wiiu/jnus/ExtractionService.java +++ b/src/de/mas/wiiu/jnus/ExtractionService.java @@ -166,4 +166,8 @@ public final class ExtractionService { } + public byte[] getBytesFromContent(Content c, long offset, long size) throws IOException { + return getDataProvider().getChunkFromContent(c, offset, (int) size); + } + }