public final class TURL extends Object implements Serializable
Constructor and Description |
---|
TURL(String spec) |
TURL(String protocol,
String host,
int port,
String file) |
TURL(String protocol,
String host,
int port,
String file,
TURLStreamHandler handler) |
TURL(String protocol,
String host,
String file) |
TURL(TURL context,
String spec) |
TURL(TURL context,
String spec,
TURLStreamHandler handler) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
String |
getAuthority() |
int |
getDefaultPort() |
String |
getFile() |
String |
getHost() |
String |
getPath() |
int |
getPort() |
String |
getProtocol() |
String |
getQuery() |
String |
getRef() |
String |
getUserInfo() |
int |
hashCode() |
TURLConnection |
openConnection() |
InputStream |
openStream() |
boolean |
sameFile(TURL otherURL) |
protected void |
set(String protocol,
String host,
int port,
String file,
String ref) |
protected void |
set(String protocol,
String host,
int port,
String authority,
String userInfo,
String path,
String query,
String ref) |
static void |
setURLStreamHandlerFactory(TURLStreamHandlerFactory streamFactory) |
String |
toExternalForm() |
String |
toString() |
TURI |
toURI() |
public TURL(String spec) throws TMalformedURLException
TMalformedURLException
public TURL(TURL context, String spec) throws TMalformedURLException
TMalformedURLException
public TURL(TURL context, String spec, TURLStreamHandler handler) throws TMalformedURLException
TMalformedURLException
public TURL(String protocol, String host, String file) throws TMalformedURLException
TMalformedURLException
public TURL(String protocol, String host, int port, String file) throws TMalformedURLException
TMalformedURLException
public TURL(String protocol, String host, int port, String file, TURLStreamHandler handler) throws TMalformedURLException
TMalformedURLException
public static void setURLStreamHandlerFactory(TURLStreamHandlerFactory streamFactory)
public boolean sameFile(TURL otherURL)
public InputStream openStream() throws IOException
IOException
public TURLConnection openConnection() throws IOException
IOException
public TURI toURI() throws TURISyntaxException
TURISyntaxException
public String toExternalForm()
public String getFile()
public String getHost()
public int getPort()
public String getProtocol()
public String getRef()
public String getQuery()
public String getPath()
public String getUserInfo()
public String getAuthority()
protected void set(String protocol, String host, int port, String authority, String userInfo, String path, String query, String ref)
public int getDefaultPort()
Copyright © 2019. All rights reserved.