congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
URL.fixURL
Code IndexAdd Tabnine to your IDE (free)

How to use
fixURL
method
in
java.net.URL

Best Java code snippets using java.net.URL.fixURL (Showing top 20 results out of 315)

origin: robovm/robovm

/**
 * 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);
}
origin: robovm/robovm

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);
  }
}
origin: robovm/robovm

  this.file = file;
fixURL(false);
origin: ibinti/bugvm

/**
 * 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);
}
origin: com.gluonhq/robovm-rt

/**
 * 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);
}
origin: MobiVM/robovm

/**
 * 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);
}
origin: FlexoVM/flexovm

/**
 * 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);
}
origin: com.mobidevelop.robovm/robovm-rt

/**
 * 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);
}
origin: com.jtransc/jtransc-rt

/**
 * 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);
}
origin: com.bugvm/bugvm-rt

/**
 * 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);
}
origin: ibinti/bugvm

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);
  }
}
origin: com.mobidevelop.robovm/robovm-rt

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);
  }
}
origin: MobiVM/robovm

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);
  }
}
origin: com.bugvm/bugvm-rt

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);
  }
}
origin: com.gluonhq/robovm-rt

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);
  }
}
origin: FlexoVM/flexovm

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);
  }
}
origin: ibinti/bugvm

  this.file = file;
fixURL(false);
origin: MobiVM/robovm

  this.file = file;
fixURL(false);
origin: com.mobidevelop.robovm/robovm-rt

  this.file = file;
fixURL(false);
origin: com.gluonhq/robovm-rt

  this.file = file;
fixURL(false);
java.netURLfixURL

Popular methods of URL

  • <init>
  • openStream
    Opens a connection to this URL and returns anInputStream for reading from that connection. This meth
  • openConnection
    Returns a new connection to the resource referred to by this URL.
  • toString
    Constructs a string representation of this URL. The string is created by calling the toExternalForm
  • getPath
    Gets the path part of this URL.
  • toURI
    Returns a java.net.URI equivalent to this URL. This method functions in the same way as new URI (thi
  • getProtocol
    Gets the protocol name of this URL.
  • getFile
    Gets the file name of this URL. The returned file portion will be the same as getPath(), plus the c
  • toExternalForm
    Constructs a string representation of this URL. The string is created by calling the toExternalForm
  • getHost
    Gets the host name of this URL, if applicable. The format of the host conforms to RFC 2732, i.e. for
  • getPort
    Gets the port number of this URL.
  • getQuery
    Gets the query part of this URL.
  • getPort,
  • getQuery,
  • equals,
  • getRef,
  • getUserInfo,
  • getAuthority,
  • hashCode,
  • getDefaultPort,
  • getContent,
  • setURLStreamHandlerFactory

Popular in Java

  • Updating database using SQL prepared statement
  • runOnUiThread (Activity)
  • getSystemService (Context)
  • getSharedPreferences (Context)
  • VirtualMachine (com.sun.tools.attach)
    A Java virtual machine. A VirtualMachine represents a Java virtual machine to which this Java vir
  • PrintWriter (java.io)
    Wraps either an existing OutputStream or an existing Writerand provides convenience methods for prin
  • Iterator (java.util)
    An iterator over a sequence of objects, such as a collection.If a collection has been changed since
  • Set (java.util)
    A Set is a data structure which does not allow duplicate elements.
  • Collectors (java.util.stream)
  • Reference (javax.naming)
  • Sublime Text for Python
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now