Some sun.misc internal APIs are deprectaed in JDK 9 and will be encapsulated or removed in a future release.
@Override public InputStream getInputStream() throws IOException { return delegatedResource.getInputStream(); }
Tip from Codota:
@Override public InputStream getInputStream() throws IOException { return delegatedResource.getInputStream(); }