MCPcopy Create free account
hub / github.com/codenameone/CodenameOne / openConnection

Method openConnection

CodenameOne/src/com/codename1/io/URL.java:128–133  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

126 }
127
128 public URLConnection openConnection() throws IOException {
129 if ("file".equals(getProtocol())) {
130 return new FileURLConnection(new File(u));
131 }
132 return new HttpURLConnection(u.toASCIIString());
133 }
134
135 public final InputStream openStream() throws IOException {
136 return openConnection().getInputStream();

Callers 15

openStreamMethod · 0.95
connectMethod · 0.95
downloadToFileMethod · 0.95
openSkinsURLMethod · 0.95
connectMethod · 0.95
downloadSkinMethod · 0.95
downloadToFileMethod · 0.95
executeJarMethod · 0.95

Calls 3

getProtocolMethod · 0.95
equalsMethod · 0.65
toASCIIStringMethod · 0.45