mirror of
https://github.com/Maschell/JNUSLib.git
synced 2025-02-16 16:29:14 +01:00
Formatting and organizing imports
This commit is contained in:
parent
c1f6272476
commit
3eb299d3a1
@ -25,7 +25,6 @@ import java.util.stream.Stream;
|
|||||||
|
|
||||||
import de.mas.wiiu.jnus.entities.TMD;
|
import de.mas.wiiu.jnus.entities.TMD;
|
||||||
import de.mas.wiiu.jnus.entities.Ticket;
|
import de.mas.wiiu.jnus.entities.Ticket;
|
||||||
import de.mas.wiiu.jnus.entities.content.Content;
|
|
||||||
import de.mas.wiiu.jnus.entities.fst.FST;
|
import de.mas.wiiu.jnus.entities.fst.FST;
|
||||||
import de.mas.wiiu.jnus.entities.fst.FSTEntry;
|
import de.mas.wiiu.jnus.entities.fst.FSTEntry;
|
||||||
import de.mas.wiiu.jnus.interfaces.NUSDataProvider;
|
import de.mas.wiiu.jnus.interfaces.NUSDataProvider;
|
||||||
|
@ -25,6 +25,7 @@ public final class NUSTitleLoaderLocalBackup {
|
|||||||
private NUSTitleLoaderLocalBackup() {
|
private NUSTitleLoaderLocalBackup() {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public static NUSTitle loadNUSTitle(String inputPath, short titleVersion, Ticket ticket) throws Exception {
|
public static NUSTitle loadNUSTitle(String inputPath, short titleVersion, Ticket ticket) throws Exception {
|
||||||
NUSTitleConfig config = new NUSTitleConfig();
|
NUSTitleConfig config = new NUSTitleConfig();
|
||||||
|
|
||||||
|
@ -18,16 +18,12 @@ package de.mas.wiiu.jnus.entities.content;
|
|||||||
|
|
||||||
import java.nio.ByteBuffer;
|
import java.nio.ByteBuffer;
|
||||||
import java.text.ParseException;
|
import java.text.ParseException;
|
||||||
import java.util.ArrayList;
|
|
||||||
import java.util.Arrays;
|
import java.util.Arrays;
|
||||||
import java.util.List;
|
|
||||||
|
|
||||||
import de.mas.wiiu.jnus.Settings;
|
import de.mas.wiiu.jnus.Settings;
|
||||||
import de.mas.wiiu.jnus.entities.fst.FSTEntry;
|
|
||||||
import de.mas.wiiu.jnus.utils.Utils;
|
import de.mas.wiiu.jnus.utils.Utils;
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
import lombok.Getter;
|
import lombok.Getter;
|
||||||
import lombok.Setter;
|
|
||||||
import lombok.extern.java.Log;
|
import lombok.extern.java.Log;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -26,7 +26,6 @@ import de.mas.wiiu.jnus.entities.fst.FST;
|
|||||||
import de.mas.wiiu.jnus.utils.StreamUtils;
|
import de.mas.wiiu.jnus.utils.StreamUtils;
|
||||||
|
|
||||||
public interface NUSDataProvider {
|
public interface NUSDataProvider {
|
||||||
|
|
||||||
default public byte[] readContent(Content content, long offset, int size) throws IOException {
|
default public byte[] readContent(Content content, long offset, int size) throws IOException {
|
||||||
return StreamUtils.getBytesFromStream(readContentAsStream(content, offset, size), size);
|
return StreamUtils.getBytesFromStream(readContentAsStream(content, offset, size), size);
|
||||||
}
|
}
|
||||||
|
@ -34,8 +34,8 @@ public final class StreamUtils {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Tries to read a given amount of bytes from a stream and return them as
|
* Tries to read a given amount of bytes from a stream and return them as a byte array. Closes the inputs stream on success AND failure.
|
||||||
* a byte array. Closes the inputs stream on success AND failure.
|
*
|
||||||
* @param in
|
* @param in
|
||||||
* @param size
|
* @param size
|
||||||
* @return
|
* @return
|
||||||
|
@ -23,7 +23,6 @@ import java.net.URL;
|
|||||||
import java.util.Arrays;
|
import java.util.Arrays;
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
import java.util.Optional;
|
|
||||||
|
|
||||||
import de.mas.wiiu.jnus.Settings;
|
import de.mas.wiiu.jnus.Settings;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user