From 84a71ed7bc03afbdfab00100b780117de354c83b Mon Sep 17 00:00:00 2001 From: syeyoung <42869671+cyoung06@users.noreply.github.com> Date: Sun, 13 Dec 2020 22:05:09 +0900 Subject: semi-obfuscate --- src/main/java/kr/syeyoung/dungeonsguide/d/a.java | 30 ++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 src/main/java/kr/syeyoung/dungeonsguide/d/a.java (limited to 'src/main/java/kr/syeyoung/dungeonsguide/d/a.java') diff --git a/src/main/java/kr/syeyoung/dungeonsguide/d/a.java b/src/main/java/kr/syeyoung/dungeonsguide/d/a.java new file mode 100644 index 00000000..9cc4932c --- /dev/null +++ b/src/main/java/kr/syeyoung/dungeonsguide/d/a.java @@ -0,0 +1,30 @@ +package kr.syeyoung.dungeonsguide.d; + +import kr.syeyoung.dungeonsguide.b; + +import java.io.*; +import java.net.URL; +import java.net.URLConnection; + +public class a extends URLConnection { + private b a; + protected a(URL b, b a) { + super(b); + connected = false; + this.a = a; + } + + @Override + public void connect() throws IOException { + } + @Override + public InputStream getInputStream() throws IOException { + if (a != null) { + String path = url.getPath().substring(1); + if (!a.d().containsKey(path)) throw new FileNotFoundException(); + return new ByteArrayInputStream(a.d().get(path)); + } else { + return a.class.getResourceAsStream(url.getPath()); + } + } +} -- cgit