< prev index next >
modules/javafx.media/src/main/java/com/sun/media/jfxmedia/locator/Locator.java
Print this page
@@ -1,7 +1,7 @@
/*
- * Copyright (c) 2010, 2017, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2010, 2019, 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
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
@@ -415,11 +415,11 @@
isMediaUnAvailable = true;
}
}
// FIXME: get cache settings from server, honor them
- } else if (scheme.equals("file") || scheme.equals("jar")) {
+ } else if (scheme.equals("file") || scheme.equals("jar") || scheme.equals("jrt")) {
InputStream stream = getInputStream(uri);
stream.close();
isConnected = true;
contentType = MediaUtils.filenameToContentType(uriString); // We need to provide at least something
}
< prev index next >