Save This Page
Home » openjdk-7 » sun » misc » [javadoc | source]
sun.misc
abstract public class: Resource [javadoc | source]
java.lang.Object
   sun.misc.Resource
This class is used to represent a Resource that has been loaded from the class path.
Method from sun.misc.Resource Summary:
getByteBuffer,   getBytes,   getCertificates,   getCodeSigners,   getCodeSourceURL,   getContentLength,   getInputStream,   getManifest,   getName,   getURL
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from sun.misc.Resource Detail:
 public ByteBuffer getByteBuffer() throws IOException 
    Returns the Resource data as a ByteBuffer, but only if the input stream was implemented on top of a ByteBuffer. Return null otherwise.
 public byte[] getBytes() throws IOException 
    Returns the Resource data as an array of bytes.
 public Certificate[] getCertificates() 
    Returns theCertificates for the Resource, or null if none.
 public CodeSigner[] getCodeSigners() 
    Returns the code signers for the Resource, or null if none.
 abstract public URL getCodeSourceURL()
    Returns the CodeSource URL for the Resource.
 abstract public int getContentLength() throws IOException
    Returns the length of the Resource data, or -1 if unknown.
 abstract public InputStream getInputStream() throws IOException
    Returns an InputStream for reading the Resource data.
 public Manifest getManifest() throws IOException 
    Returns the Manifest for the Resource, or null if none.
 abstract public String getName()
    Returns the name of the Resource.
 abstract public URL getURL()
    Returns the URL of the Resource.