From c57cee987abc65df7acd4c7746752cb4f2137f76 Mon Sep 17 00:00:00 2001 From: Maschell Date: Fri, 26 Apr 2019 10:08:53 +0200 Subject: [PATCH] Use the default readFile implementation for the FSTDataProviderNUSTitle --- .../jnus/implementations/FSTDataProviderNUSTitle.java | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/src/de/mas/wiiu/jnus/implementations/FSTDataProviderNUSTitle.java b/src/de/mas/wiiu/jnus/implementations/FSTDataProviderNUSTitle.java index 15bf4da..c7991eb 100644 --- a/src/de/mas/wiiu/jnus/implementations/FSTDataProviderNUSTitle.java +++ b/src/de/mas/wiiu/jnus/implementations/FSTDataProviderNUSTitle.java @@ -16,7 +16,6 @@ ****************************************************************************/ package de.mas.wiiu.jnus.implementations; -import java.io.ByteArrayOutputStream; import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; @@ -65,15 +64,6 @@ public class FSTDataProviderNUSTitle implements FSTDataProvider, HasNUSTitle { return rootEntry; } - @Override - public byte[] readFile(FSTEntry entry, long offset, long size) throws IOException { - ByteArrayOutputStream out = new ByteArrayOutputStream(); - - readFileToStream(out, entry, offset, Optional.of(size)); - - return out.toByteArray(); - } - @Override public boolean readFileToStream(OutputStream out, FSTEntry entry, long offset, Optional size) throws IOException { long fileOffset = entry.getFileOffset() + offset;