Re: java.net.URLConnection.getContent()

2025-06-16 Thread Alan Bateman
On 16/06/2025 19:48, Philip Race wrote: >A migration from AudioClip to SoundClip would require all usages to change too. >I think for now that it should be okay to just the mapping from MultimediaContentHandlers so that it returns null. For clarity, this handler/provider returning null does

Re: java.net.URLConnection.getContent()

2025-06-16 Thread Philip Race
>A migration from AudioClip to SoundClip would require all usages to change too. >I think for now that it should be okay to just the mapping from MultimediaContentHandlers so that it returns null. For clarity, this handler/provider returning null does not mean that null is what is returned t

Re: java.net.URLConnection.getContent()

2025-06-15 Thread Alan Bateman
On 15/06/2025 17:33, Philip Race wrote: Perhaps these APIs should be deprecated (for removal) ? Maybe but would require a lot of analysis to understand impact as there are several ways to configure content handlers and there are stream handlers that exist outside of the JDK that might interac

Re: java.net.URLConnection.getContent()

2025-06-15 Thread Philip Race
Perhaps these APIs should be deprecated (for removal) ? For 30 years, AudioClip has been the only public type that this API returned for audio data. Clearly that won't be possible after it is removed. SoundClip is the replacement for public uses of AudioClip so it is the obvious replacement.

Re: java.net.URLConnection.getContent()

2025-06-14 Thread Alan Bateman
On 13/06/2025 23:11, Philip Race wrote: java.net.URLConnection has public Object getContent(); It uses the desktop module to find handlers for image and audio data Briefly, the desktop module     "provides java.net.ContentHandlerFactory with     sun.awt.www.content.MultimediaContentHandlers