Re:Common I/O Tasks in Modern Java
by layer8 on Friday August 02, 2024 @09:15PM
(#41143989)
Yes. Use the newer URI class instead if you want a value object without “smarts”. URL instances also contain a URLStreamHandler, which means that two URL instances that compare equal can still have different URLStreamHandlers that handle the URL differently. Instances of the class URL are really service objects.
[ Parent
| on HN ]
There are no comments on this comment yet.