JEP 330 class loader getResourceAsStream (original) (raw)
Alan Bateman Alan.Bateman at oracle.com
Mon Aug 27 18:09:24 UTC 2018
- Previous message: JEP 330 class loader getResourceAsStream
- Next message: JEP 330 class loader getResourceAsStream
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On 27/08/2018 18:49, Jonathan Gibbons wrote:
Alan, It looks like we don't even need to register a URLStreamHandlerProvider, we can provide the URLStreamHandler when we create the URL. :-) This will only work for URL objects returned by getResource. If you create the URL by other means, and without specifying the URLStreamHandler, then the URL constructor will fail as the protocol won't be known.
-Alan.
- Previous message: JEP 330 class loader getResourceAsStream
- Next message: JEP 330 class loader getResourceAsStream
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]