Code example for URI

Methods: getFragmentgetPathgetQuery

  public void initialize(URI name, Configuration conf) throws IOException {
    try { 
      URI realUri = new URI (realScheme, realAuthority,
                            name.getPath(), name.getQuery(), name.getFragment());
      super.initialize(realUri, conf);
    } catch (URISyntaxException e) {
      throw new RuntimeException(e);
  public URI getUri() {
    return myUri;
  public String getName() {
    return getUri().toString();
Connect your IDE to all the code out there  Get Codota for Java