modules/media/src/main/java/com/sun/media/jfxmedia/locator/ConnectionHolder.java

Print this page

       

*** 1,7 **** /* ! * Copyright (c) 2010, 2014, 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 --- 1,7 ---- /* ! * Copyright (c) 2010, 2015, 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
*** 254,264 **** channel = openChannel(null); } boolean needBuffer() { String scheme = uri.getScheme().toLowerCase(); ! return "http".equals(scheme); } boolean isSeekable() { return (urlConnection instanceof HttpURLConnection) || (urlConnection instanceof JarURLConnection); } --- 254,264 ---- channel = openChannel(null); } boolean needBuffer() { String scheme = uri.getScheme().toLowerCase(); ! return ("http".equals(scheme) || "https".equals(scheme)); } boolean isSeekable() { return (urlConnection instanceof HttpURLConnection) || (urlConnection instanceof JarURLConnection); }