| Constructor and Description |
|---|
Resource() |
| Modifier and Type | Method and Description |
|---|---|
java.nio.ByteBuffer |
getByteBuffer()
Returns the Resource data as a ByteBuffer, but only if the input stream
was implemented on top of a ByteBuffer.
|
byte[] |
getBytes()
Returns the Resource data as an array of bytes.
|
Certificate[] |
getCertificates()
Returns theCertificates for the Resource, or null if none.
|
CodeSigner[] |
getCodeSigners()
Returns the code signers for the Resource, or null if none.
|
abstract URL |
getCodeSourceURL()
Returns the CodeSource URL for the Resource.
|
abstract int |
getContentLength()
Returns the length of the Resource data, or -1 if unknown.
|
abstract InputStream |
getInputStream()
Returns an InputStream for reading the Resource data.
|
Manifest |
getManifest()
Returns the Manifest for the Resource, or null if none.
|
abstract String |
getName()
Returns the name of the Resource.
|
abstract URL |
getURL()
Returns the URL of the Resource.
|
public Resource()
public abstract URL getCodeSourceURL()
public abstract InputStream getInputStream() throws IOException
IOExceptionpublic abstract int getContentLength() throws IOException
IOExceptionpublic byte[] getBytes() throws IOException
IOExceptionpublic java.nio.ByteBuffer getByteBuffer() throws IOException
IOExceptionpublic Manifest getManifest() throws IOException
IOExceptionpublic Certificate[] getCertificates()
public CodeSigner[] getCodeSigners()