/** * Creates a new URI instance by parsing {@code spec}. * * @param spec a URI whose illegal characters have all been encoded. */ public URI(String spec) throws URISyntaxException { parseURI(spec, false); }
private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException { in.defaultReadObject(); try { parseURI(string, false); } catch (URISyntaxException e) { throw new IOException(e.toString()); } }
/** * Creates a new URI instance of the given unencoded component parts. * * @param scheme the URI scheme, or null for a non-absolute URI. */ public URI(String scheme, String schemeSpecificPart, String fragment) throws URISyntaxException { StringBuilder uri = new StringBuilder(); if (scheme != null) { uri.append(scheme); uri.append(':'); } if (schemeSpecificPart != null) { ALL_LEGAL_ENCODER.appendEncoded(uri, schemeSpecificPart); } if (fragment != null) { uri.append('#'); ALL_LEGAL_ENCODER.appendEncoded(uri, fragment); } parseURI(uri.toString(), false); }
parseURI(uri.toString(), false);
parseURI(uri.toString(), true);
/** * Creates a new URI instance by parsing {@code spec}. * * @param spec a URI whose illegal characters have all been encoded. */ public URI(String spec) throws URISyntaxException { parseURI(spec, false); }
/** * Creates a new URI instance by parsing {@code spec}. * * @param spec a URI whose illegal characters have all been encoded. */ public URI(String spec) throws URISyntaxException { parseURI(spec, false); }
/** * Creates a new URI instance by parsing {@code spec}. * * @param spec a URI whose illegal characters have all been encoded. */ public URI(String spec) throws URISyntaxException { parseURI(spec, false); }
/** * Creates a new URI instance by parsing {@code spec}. * * @param spec a URI whose illegal characters have all been encoded. */ public URI(String spec) throws URISyntaxException { parseURI(spec, false); }
/** * Creates a new URI instance by parsing {@code spec}. * * @param spec a URI whose illegal characters have all been encoded. */ public URI(String spec) throws URISyntaxException { parseURI(spec, false); }
/** * Creates a new URI instance by parsing {@code spec}. * * @param spec a URI whose illegal characters have all been encoded. */ public URI(String spec) throws URISyntaxException { parseURI(spec, false); }
/** * Creates a new URI instance by parsing {@code spec}. * * @param spec a URI whose illegal characters have all been encoded. */ public URI(String spec) throws URISyntaxException { parseURI(spec, false); }
private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException { in.defaultReadObject(); try { parseURI(string, false); } catch (URISyntaxException e) { throw new IOException(e.toString()); } }
private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException { in.defaultReadObject(); try { parseURI(string, false); } catch (URISyntaxException e) { throw new IOException(e.toString()); } }
private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException { in.defaultReadObject(); try { parseURI(string, false); } catch (URISyntaxException e) { throw new IOException(e.toString()); } }
private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException { in.defaultReadObject(); try { parseURI(string, false); } catch (URISyntaxException e) { throw new IOException(e.toString()); } }
private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException { in.defaultReadObject(); try { parseURI(string, false); } catch (URISyntaxException e) { throw new IOException(e.toString()); } }
private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException { in.defaultReadObject(); try { parseURI(string, false); } catch (URISyntaxException e) { throw new IOException(e.toString()); } }
/** * Creates a new URI instance of the given unencoded component parts. * * @param scheme the URI scheme, or null for a non-absolute URI. */ public URI(String scheme, String schemeSpecificPart, String fragment) throws URISyntaxException { StringBuilder uri = new StringBuilder(); if (scheme != null) { uri.append(scheme); uri.append(':'); } if (schemeSpecificPart != null) { ALL_LEGAL_ENCODER.appendEncoded(uri, schemeSpecificPart); } if (fragment != null) { uri.append('#'); ALL_LEGAL_ENCODER.appendEncoded(uri, fragment); } parseURI(uri.toString(), false); }
/** * Creates a new URI instance of the given unencoded component parts. * * @param scheme the URI scheme, or null for a non-absolute URI. */ public URI(String scheme, String schemeSpecificPart, String fragment) throws URISyntaxException { StringBuilder uri = new StringBuilder(); if (scheme != null) { uri.append(scheme); uri.append(':'); } if (schemeSpecificPart != null) { ALL_LEGAL_ENCODER.appendEncoded(uri, schemeSpecificPart); } if (fragment != null) { uri.append('#'); ALL_LEGAL_ENCODER.appendEncoded(uri, fragment); } parseURI(uri.toString(), false); }