/** * Sets the properties of this URL using the provided arguments. Only a * {@code URLStreamHandler} can use this method to set fields of the * existing URL instance. A URL is generally constant. */ protected void set(String protocol, String host, int port, String file, String ref) { if (this.protocol == null) { this.protocol = protocol; } this.host = host; this.file = file; this.port = port; this.ref = ref; hashCode = 0; fixURL(true); }
private void readObject(ObjectInputStream stream) throws IOException { try { stream.defaultReadObject(); if (host != null && authority == null) { fixURL(true); } else if (authority != null) { int index; if ((index = authority.lastIndexOf('@')) > -1) { userInfo = authority.substring(0, index); } if (file != null && (index = file.indexOf('?')) > -1) { query = file.substring(index + 1); path = file.substring(0, index); } else { path = file; } } setupStreamHandler(); if (streamHandler == null) { throw new IOException("Unknown protocol: " + protocol); } hashCode = 0; // necessary until http://b/4471249 is fixed } catch (ClassNotFoundException e) { throw new IOException(e); } }
this.file = file; fixURL(false);
/** * Sets the properties of this URL using the provided arguments. Only a * {@code URLStreamHandler} can use this method to set fields of the * existing URL instance. A URL is generally constant. */ protected void set(String protocol, String host, int port, String file, String ref) { if (this.protocol == null) { this.protocol = protocol; } this.host = host; this.file = file; this.port = port; this.ref = ref; hashCode = 0; fixURL(true); }
/** * Sets the properties of this URL using the provided arguments. Only a * {@code URLStreamHandler} can use this method to set fields of the * existing URL instance. A URL is generally constant. */ protected void set(String protocol, String host, int port, String file, String ref) { if (this.protocol == null) { this.protocol = protocol; } this.host = host; this.file = file; this.port = port; this.ref = ref; hashCode = 0; fixURL(true); }
/** * Sets the properties of this URL using the provided arguments. Only a * {@code URLStreamHandler} can use this method to set fields of the * existing URL instance. A URL is generally constant. */ protected void set(String protocol, String host, int port, String file, String ref) { if (this.protocol == null) { this.protocol = protocol; } this.host = host; this.file = file; this.port = port; this.ref = ref; hashCode = 0; fixURL(true); }
/** * Sets the properties of this URL using the provided arguments. Only a * {@code URLStreamHandler} can use this method to set fields of the * existing URL instance. A URL is generally constant. */ protected void set(String protocol, String host, int port, String file, String ref) { if (this.protocol == null) { this.protocol = protocol; } this.host = host; this.file = file; this.port = port; this.ref = ref; hashCode = 0; fixURL(true); }
/** * Sets the properties of this URL using the provided arguments. Only a * {@code URLStreamHandler} can use this method to set fields of the * existing URL instance. A URL is generally constant. */ protected void set(String protocol, String host, int port, String file, String ref) { if (this.protocol == null) { this.protocol = protocol; } this.host = host; this.file = file; this.port = port; this.ref = ref; hashCode = 0; fixURL(true); }
/** * Sets the properties of this URL using the provided arguments. Only a * {@code URLStreamHandler} can use this method to set fields of the * existing URL instance. A URL is generally constant. */ protected void set(String protocol, String host, int port, String file, String ref) { if (this.protocol == null) { this.protocol = protocol; } this.host = host; this.file = file; this.port = port; this.ref = ref; hashCode = 0; fixURL(true); }
/** * Sets the properties of this URL using the provided arguments. Only a * {@code URLStreamHandler} can use this method to set fields of the * existing URL instance. A URL is generally constant. */ protected void set(String protocol, String host, int port, String file, String ref) { if (this.protocol == null) { this.protocol = protocol; } this.host = host; this.file = file; this.port = port; this.ref = ref; hashCode = 0; fixURL(true); }
private void readObject(ObjectInputStream stream) throws IOException { try { stream.defaultReadObject(); if (host != null && authority == null) { fixURL(true); } else if (authority != null) { int index; if ((index = authority.lastIndexOf('@')) > -1) { userInfo = authority.substring(0, index); } if (file != null && (index = file.indexOf('?')) > -1) { query = file.substring(index + 1); path = file.substring(0, index); } else { path = file; } } setupStreamHandler(); if (streamHandler == null) { throw new IOException("Unknown protocol: " + protocol); } hashCode = 0; // necessary until http://b/4471249 is fixed } catch (ClassNotFoundException e) { throw new IOException(e); } }
private void readObject(ObjectInputStream stream) throws IOException { try { stream.defaultReadObject(); if (host != null && authority == null) { fixURL(true); } else if (authority != null) { int index; if ((index = authority.lastIndexOf('@')) > -1) { userInfo = authority.substring(0, index); } if (file != null && (index = file.indexOf('?')) > -1) { query = file.substring(index + 1); path = file.substring(0, index); } else { path = file; } } setupStreamHandler(); if (streamHandler == null) { throw new IOException("Unknown protocol: " + protocol); } hashCode = 0; // necessary until http://b/4471249 is fixed } catch (ClassNotFoundException e) { throw new IOException(e); } }
private void readObject(ObjectInputStream stream) throws IOException { try { stream.defaultReadObject(); if (host != null && authority == null) { fixURL(true); } else if (authority != null) { int index; if ((index = authority.lastIndexOf('@')) > -1) { userInfo = authority.substring(0, index); } if (file != null && (index = file.indexOf('?')) > -1) { query = file.substring(index + 1); path = file.substring(0, index); } else { path = file; } } setupStreamHandler(); if (streamHandler == null) { throw new IOException("Unknown protocol: " + protocol); } hashCode = 0; // necessary until http://b/4471249 is fixed } catch (ClassNotFoundException e) { throw new IOException(e); } }
private void readObject(ObjectInputStream stream) throws IOException { try { stream.defaultReadObject(); if (host != null && authority == null) { fixURL(true); } else if (authority != null) { int index; if ((index = authority.lastIndexOf('@')) > -1) { userInfo = authority.substring(0, index); } if (file != null && (index = file.indexOf('?')) > -1) { query = file.substring(index + 1); path = file.substring(0, index); } else { path = file; } } setupStreamHandler(); if (streamHandler == null) { throw new IOException("Unknown protocol: " + protocol); } hashCode = 0; // necessary until http://b/4471249 is fixed } catch (ClassNotFoundException e) { throw new IOException(e); } }
private void readObject(ObjectInputStream stream) throws IOException { try { stream.defaultReadObject(); if (host != null && authority == null) { fixURL(true); } else if (authority != null) { int index; if ((index = authority.lastIndexOf('@')) > -1) { userInfo = authority.substring(0, index); } if (file != null && (index = file.indexOf('?')) > -1) { query = file.substring(index + 1); path = file.substring(0, index); } else { path = file; } } setupStreamHandler(); if (streamHandler == null) { throw new IOException("Unknown protocol: " + protocol); } hashCode = 0; // necessary until http://b/4471249 is fixed } catch (ClassNotFoundException e) { throw new IOException(e); } }
private void readObject(ObjectInputStream stream) throws IOException { try { stream.defaultReadObject(); if (host != null && authority == null) { fixURL(true); } else if (authority != null) { int index; if ((index = authority.lastIndexOf('@')) > -1) { userInfo = authority.substring(0, index); } if (file != null && (index = file.indexOf('?')) > -1) { query = file.substring(index + 1); path = file.substring(0, index); } else { path = file; } } setupStreamHandler(); if (streamHandler == null) { throw new IOException("Unknown protocol: " + protocol); } hashCode = 0; // necessary until http://b/4471249 is fixed } catch (ClassNotFoundException e) { throw new IOException(e); } }
this.file = file; fixURL(false);
this.file = file; fixURL(false);
this.file = file; fixURL(false);
this.file = file; fixURL(false);