-
Notifications
You must be signed in to change notification settings - Fork 583
8294872: Document "resource" protocol #2251
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,5 @@ | ||
| /* | ||
| * Copyright (c) 2013, 2025, Oracle and/or its affiliates. All rights reserved. | ||
| * Copyright (c) 2013, 2026, Oracle and/or its affiliates. All rights reserved. | ||
| * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. | ||
| * | ||
| * This code is free software; you can redistribute it and/or modify it | ||
|
|
@@ -34,7 +34,7 @@ | |
| * <h2>Contents</h2> | ||
| * <ol> | ||
| * <li><a href="#SupportedMediaTypes">Supported Media Types</a></li> | ||
| * <li><a href="#SupportedProtocols">Supported Protocols</a></li> | ||
| * <li><a href="#SupportedProtocols">Supported Schemes / Protocols</a></li> | ||
| * <li><a href="#SupportedMetadataTags">Supported Metadata Tags</a></li> | ||
| * <li><a href="#PlayingMediaInJavaFX">Playing Media in Java FX</a></li> | ||
| * </ol> | ||
|
|
@@ -112,41 +112,52 @@ | |
| * aggregate similar attributes. | ||
| * | ||
| * <a id="SupportedProtocols"></a> | ||
| * <h3>Supported Protocols</h3> | ||
| * <h3>Supported Schemes / Protocols</h3> | ||
| * | ||
| * <table border="1"> | ||
| * <caption>Supported Protocols Table</caption> | ||
| * <caption>Supported Schemes / Protocols Table</caption> | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. L119: the header says "Protocol" while the table lists schemes and protocols. I understand there is some mixing of related things - for example, the "P" in HTTP is for "protocol", but "http" (or "http:") is a URI scheme. So maybe revert adding "Schemes /" in L115,118 and just keep saying "protocol"? |
||
| * <tr><th scope="col">Protocol</th><th scope="col">Description</th><th scope="col">Reference</th></tr> | ||
| * <tr> | ||
| * <th scope="row">FILE</th> | ||
| * <th scope="row"><code>file</code></th> | ||
| * <td>Protocol for URI representation of local files</td> | ||
| * <td><a href="https://docs.oracle.com/javase/8/docs/api/java/net/URI.html">java.net.URI</a></td> | ||
| * <td>{@link java.net.URI}</td> | ||
| * </tr> | ||
| * <tr> | ||
| * <th scope="row">HTTP</th> | ||
| * <th scope="row"><code>http</code></th> | ||
| * <td>Hypertext transfer protocol for representation of remote files</td> | ||
| * <td><a href="https://docs.oracle.com/javase/8/docs/api/java/net/URI.html">java.net.URI</a></td> | ||
| * <td>{@link java.net.URI}</td> | ||
| * </tr> | ||
| * <tr> | ||
| * <th scope="row">HTTPS</th> | ||
| * <th scope="row"><code>https</code></th> | ||
| * <td>Hypertext transfer protocol secure for representation of remote files</td> | ||
| * <td><a href="https://docs.oracle.com/javase/8/docs/api/java/net/URI.html">java.net.URI</a></td> | ||
| * <td>{@link java.net.URI}</td> | ||
| * </tr> | ||
| * <tr> | ||
| * <th scope="row">JAR</th> | ||
| * <td>Representation of media entries in files accessible via the FILE, HTTP or HTTPS protocols</td> | ||
| * <td><a href="https://docs.oracle.com/javase/8/docs/api/java/net/JarURLConnection.html">java.net.JarURLConnection</a></td> | ||
| * <th scope="row"><code>jar</code></th> | ||
| * <td>Representation of media resources packaged in JAR files accessible via the <code>file</code>, | ||
| * <code>http</code>, or <code>https</code> protocols</td> | ||
| * <td>{@link java.net.JarURLConnection}</td> | ||
| * </tr> | ||
| * <tr> | ||
| * <th scope="row"><code>jrt</code></th> | ||
| * <td>Representation of media resources in the Java run-time image</td> | ||
| * <td><a href="https://openjdk.org/jeps/220">JEP 220: Modular Run-Time Images</a></td> | ||
| * </tr> | ||
| * <tr> | ||
| * <th scope="row"><code>resource</code></th> | ||
| * <td>Representation of media resources bundled in a GraalVM Native Image executable</td> | ||
| * <td><a href="https://www.graalvm.org/latest/reference-manual/native-image/dynamic-features/URLProtocols/">URL Protocols in Native Image</a></td> | ||
| * </tr> | ||
| * <tr> | ||
| * <th scope="row">HTTP Live Streaming (HLS)</th> | ||
| * <td>Playlist-based media streaming via HTTP or HTTPS</td> | ||
| * <td>Playlist-based media streaming via <code>http</code> or <code>https</code></td> | ||
| * <td><a href="https://datatracker.ietf.org/doc/html/rfc8216">HTTP Live Streaming (RFC 8216)</a></td> | ||
| * </tr> | ||
| * </table> | ||
| * <br> | ||
| * <h4>MPEG-4 Playback via HTTP</h4> | ||
| * <h4>MPEG-4 Playback via <code>http</code> or <code>https</code></h4> | ||
| * <p> | ||
| * It is recommended that MPEG-4 media to be played over HTTP or HTTPS be formatted such that the | ||
| * It is recommended that MPEG-4 media to be played over <code>http</code> or <code>https</code> be formatted such that the | ||
| * headers required to decode the stream appear at the beginning of the file. Otherwise, | ||
| * playback might stall until the entire file is downloaded. | ||
| * </p> | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"resource source" is poorly phrased. suggestion:
Supported schemes are ....