Package org.teavm.classlib.java.net
Class TURL
java.lang.Object
org.teavm.classlib.java.net.TURL
- All Implemented Interfaces:
Serializable
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionTURL(String protocol, String host, int port, String file, TURLStreamHandler handler) TURL(TURL context, String spec, TURLStreamHandler handler) -
Method Summary
Modifier and TypeMethodDescriptionbooleanintgetFile()getHost()getPath()intgetPort()getQuery()getRef()inthashCode()booleanprotected voidprotected voidset(String protocol, String host, int port, String authority, String userInfo, String path, String query, String ref) static voidsetURLStreamHandlerFactory(TURLStreamHandlerFactory streamFactory) toString()toURI()
-
Constructor Details
-
TURL
- Throws:
TMalformedURLException
-
TURL
- Throws:
TMalformedURLException
-
TURL
- Throws:
TMalformedURLException
-
TURL
- Throws:
TMalformedURLException
-
TURL
- Throws:
TMalformedURLException
-
TURL
public TURL(String protocol, String host, int port, String file, TURLStreamHandler handler) throws TMalformedURLException - Throws:
TMalformedURLException
-
-
Method Details
-
setURLStreamHandlerFactory
-
set
-
equals
-
sameFile
-
hashCode
public int hashCode() -
openStream
- Throws:
IOException
-
openConnection
- Throws:
IOException
-
toURI
- Throws:
TURISyntaxException
-
toString
-
toExternalForm
-
getFile
-
getHost
-
getPort
public int getPort() -
getProtocol
-
getRef
-
getQuery
-
getPath
-
getUserInfo
-
getAuthority
-
set
-
getDefaultPort
public int getDefaultPort()
-