org.apache.abdera.i18n.iri
Class IRI
java.lang.Object
org.apache.abdera.i18n.iri.IRI
- All Implemented Interfaces:
- Serializable, Cloneable
public final class IRI
- extends Object
- implements Serializable, Cloneable
- See Also:
- Serialized Form
Constructor Summary |
IRI(String iri)
|
IRI(String iri,
Normalizer.Form nf)
|
IRI(String scheme,
String userinfo,
String host,
int port,
String path,
String query,
String fragment)
|
IRI(String scheme,
String host,
String path,
String fragment)
|
IRI(String scheme,
String authority,
String path,
String query,
String fragment)
|
IRI(URI uri)
|
IRI(URL url)
|
_scheme
protected Scheme _scheme
IRI
public IRI(URL url)
IRI
public IRI(URI uri)
IRI
public IRI(String iri)
IRI
public IRI(String iri,
Normalizer.Form nf)
throws IOException
- Throws:
IOException
IRI
public IRI(String scheme,
String userinfo,
String host,
int port,
String path,
String query,
String fragment)
IRI
public IRI(String scheme,
String authority,
String path,
String query,
String fragment)
IRI
public IRI(String scheme,
String host,
String path,
String fragment)
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
equals
public boolean equals(Object obj)
- Overrides:
equals
in class Object
getAuthority
public String getAuthority()
getFragment
public String getFragment()
getHost
public String getHost()
getIDN
public IDNA getIDN()
getASCIIHost
public String getASCIIHost()
getPath
public String getPath()
getPort
public int getPort()
getQuery
public String getQuery()
getScheme
public String getScheme()
getSchemeSpecificPart
public String getSchemeSpecificPart()
getUserInfo
public String getUserInfo()
getASCIIAuthority
public String getASCIIAuthority()
getASCIIFragment
public String getASCIIFragment()
getASCIIPath
public String getASCIIPath()
getASCIIQuery
public String getASCIIQuery()
getASCIIUserInfo
public String getASCIIUserInfo()
getASCIISchemeSpecificPart
public String getASCIISchemeSpecificPart()
clone
public Object clone()
- Overrides:
clone
in class Object
isAbsolute
public boolean isAbsolute()
isOpaque
public boolean isOpaque()
relativize
public static IRI relativize(IRI b,
IRI c)
relativize
public IRI relativize(IRI iri)
isPathAbsolute
public boolean isPathAbsolute()
isSameDocumentReference
public boolean isSameDocumentReference()
resolve
public static IRI resolve(IRI b,
String c)
throws IOException
- Throws:
IOException
resolve
public static IRI resolve(IRI b,
IRI c)
normalize
public IRI normalize()
normalizeString
public static String normalizeString(String iri)
normalize
public static IRI normalize(IRI iri)
normalize
protected static String normalize(String path)
resolve
public IRI resolve(IRI iri)
resolve
public IRI resolve(String iri)
toString
public String toString()
- Overrides:
toString
in class Object
toASCIIString
public String toASCIIString()
toBIDIString
public String toBIDIString()
toURI
public URI toURI()
throws URISyntaxException
- Throws:
URISyntaxException
toURL
public URL toURL()
throws MalformedURLException,
URISyntaxException
- Throws:
MalformedURLException
URISyntaxException
preinit
public static void preinit()
trailingSlash
public IRI trailingSlash()
- Returns a new IRI with a trailing slash appended to the path, if necessary
Copyright © 2006-2010 Apache Software Foundation. All Rights Reserved.