org.apache.abdera.i18n.iri
Class IRI

java.lang.Object
  extended by org.apache.abdera.i18n.iri.IRI
All Implemented Interfaces:
Serializable, Cloneable

public final class IRI
extends Object
implements Serializable, Cloneable

See Also:
Serialized Form

Field Summary
protected  Scheme _scheme
           
 
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)
           
 
Method Summary
 Object clone()
           
 boolean equals(Object obj)
           
 String getASCIIAuthority()
           
 String getASCIIFragment()
           
 String getASCIIHost()
           
 String getASCIIPath()
           
 String getASCIIQuery()
           
 String getASCIISchemeSpecificPart()
           
 String getASCIIUserInfo()
           
 String getAuthority()
           
 String getFragment()
           
 String getHost()
           
 IDNA getIDN()
           
 String getPath()
           
 int getPort()
           
 String getQuery()
           
 String getScheme()
           
 String getSchemeSpecificPart()
           
 String getUserInfo()
           
 int hashCode()
           
 boolean isAbsolute()
           
 boolean isOpaque()
           
 boolean isPathAbsolute()
           
 boolean isSameDocumentReference()
           
 IRI normalize()
           
static IRI normalize(IRI iri)
           
protected static String normalize(String path)
           
static String normalizeString(String iri)
           
static void preinit()
           
 IRI relativize(IRI iri)
           
static IRI relativize(IRI b, IRI c)
           
 IRI resolve(IRI iri)
           
static IRI resolve(IRI b, IRI c)
           
static IRI resolve(IRI b, String c)
           
 IRI resolve(String iri)
           
 String toASCIIString()
           
 String toBIDIString()
           
 String toString()
           
 URI toURI()
           
 URL toURL()
           
 IRI trailingSlash()
          Returns a new IRI with a trailing slash appended to the path, if necessary
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

_scheme

protected Scheme _scheme
Constructor Detail

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)
Method Detail

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.