- close
Close the underlying InputStream, or release/unmap the underlying ByteBuffer.
- getPath
- getPathRelativeToClasspathElement
- getURL
- inputStreamToByteArray
- load
Load a classpath resource and return its content as a byte array. Automatically
calls Resource#close
- open
Open an InputStream for a classpath resource. Make sure you call
Resource#close() when you are finis
- openOrRead
Open a ByteBuffer, if there is an efficient underlying mechanism for opening
one, otherwise open an
- read
Open a ByteBuffer for a classpath resource. Make sure you call Resource#close()
when you are finishe
- toString
Return a string representation of the resource's location (as a URL string).