diff options
author | syeyoung <42869671+cyoung06@users.noreply.github.com> | 2020-12-13 22:05:09 +0900 |
---|---|---|
committer | syeyoung <42869671+cyoung06@users.noreply.github.com> | 2020-12-13 22:05:09 +0900 |
commit | 84a71ed7bc03afbdfab00100b780117de354c83b (patch) | |
tree | b74a005c5c3df99d3a23e70c9a1ed1159705dee4 /src/main/java/kr/syeyoung/dungeonsguide/d/a.java | |
parent | 2b869989ec69bfb0f5ca54409844ec5720b6a6fd (diff) | |
download | Skyblock-Dungeons-Guide-84a71ed7bc03afbdfab00100b780117de354c83b.tar.gz Skyblock-Dungeons-Guide-84a71ed7bc03afbdfab00100b780117de354c83b.tar.bz2 Skyblock-Dungeons-Guide-84a71ed7bc03afbdfab00100b780117de354c83b.zip |
semi-obfuscate
Diffstat (limited to 'src/main/java/kr/syeyoung/dungeonsguide/d/a.java')
-rw-r--r-- | src/main/java/kr/syeyoung/dungeonsguide/d/a.java | 30 |
1 files changed, 30 insertions, 0 deletions
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()); + } + } +} |