Some sun.misc internal APIs are deprectaed in JDK 9 and will be encapsulated or removed in a future release.
@Override public URL getURL() { return delegatedResource.getURL(); }
@Override public URL getCodeSourceURL() { return delegatedResource.getCodeSourceURL(); }
@Override public int getContentLength() throws IOException { return delegatedResource.getContentLength(); }
data = resource.getBytes(); assert data.length == resource.getContentLength(); LOG.fine("Type loaded from " + resource.getURL() + ".");
URL url = res.getCodeSourceURL(); if (i != -1) { String pkgname = name.substring(0, i); Manifest man = res.getManifest(); if (pkg != null) { java.nio.ByteBuffer bb = res.getByteBuffer(); if (bb != null) { CodeSigner[] signers = res.getCodeSigners(); CodeSource cs = new CodeSource(url, signers); return defineClass(name, bb, cs); } else { byte[] b = res.getBytes(); CodeSigner[] signers = res.getCodeSigners(); CodeSource cs = new CodeSource(url, signers); return defineClass(name, b, 0, b.length, cs);
throws IOException, ClassNotFoundException { int i = name.lastIndexOf('.'); URL url = res.getCodeSourceURL(); if (i != -1) { String pkgname = name.substring(0, i); Manifest man = res.getManifest(); if (pkg != null) { byte[] b = res.getBytes(); Certificate[] certs = res.getCertificates(); CodeSource cs = new CodeSource(url, certs);
@Override public byte[] getBytes() throws IOException { return mySafeInstrumenter.instrument(className, delegatedResource.getBytes()); }
@Override public Manifest getManifest() throws IOException { return delegatedResource.getManifest(); }
@Override public CodeSigner[] getCodeSigners() { return delegatedResource.getCodeSigners(); }
@Override public Certificate[] getCertificates() { return delegatedResource.getCertificates(); }
@Override public ByteBuffer getByteBuffer() throws IOException { ByteBuffer bb = delegatedResource.getByteBuffer(); if (bb == null) { return null; } byte[] b = mySafeInstrumenter.instrument(className, bb.array()); return ByteBuffer.wrap(b); }
data = resource.getBytes(); assert data.length == resource.getContentLength(); LOG.fine("Type loaded from " + resource.getURL() + ".");
public URL nextElement() { return e.nextElement().getURL(); } public boolean hasMoreElements() {
public URL nextElement() { return e.nextElement().getURL(); } public boolean hasMoreElements() {