org.knopflerfish.framework.BundleURLStreamHandler Class Reference

List of all members.


Detailed Description

Bundle URL handling.

Author:
Jan Stein

Definition at line 45 of file BundleURLStreamHandler.java.


Protected Member Functions

boolean equals (URL u1, URL u2)
 Equals calculation for bundle URLs.
int hashCode (URL u)
 Provides the hash calculation.
boolean sameFile (URL u1, URL u2)
 Compare two urls to see whether they refer to the same file, i.e., having the same protocol, host, port, and path.
boolean hostsEqual (URL u1, URL u2)
 Compares the host components of two URLs.
String toExternalForm (URL url)
 Converts a bundle URL to a String.

Member Function Documentation

boolean org.knopflerfish.framework.BundleURLStreamHandler.equals ( URL  u1,
URL  u2 
) [protected]

Equals calculation for bundle URLs.

Returns:
true if the two urls are considered equal, ie. they refer to the same fragment in the same file.

Definition at line 196 of file BundleURLStreamHandler.java.

References org.knopflerfish.framework.BundleURLStreamHandler.sameFile().

int org.knopflerfish.framework.BundleURLStreamHandler.hashCode ( URL  u  )  [protected]

Provides the hash calculation.

Returns:
an int suitable for hash table indexing

Definition at line 205 of file BundleURLStreamHandler.java.

boolean org.knopflerfish.framework.BundleURLStreamHandler.sameFile ( URL  u1,
URL  u2 
) [protected]

Compare two urls to see whether they refer to the same file, i.e., having the same protocol, host, port, and path.

Returns:
true if u1 and u2 refer to the same file

Definition at line 229 of file BundleURLStreamHandler.java.

References org.knopflerfish.framework.BundleURLStreamHandler.hostsEqual().

Referenced by org.knopflerfish.framework.BundleURLStreamHandler.equals().

boolean org.knopflerfish.framework.BundleURLStreamHandler.hostsEqual ( URL  u1,
URL  u2 
) [protected]

Compares the host components of two URLs.

Parameters:
u1 the URL of the first host to compare
u2 the URL of the second host to compare
Returns:
true if and only if they are equal, false otherwise.

Definition at line 259 of file BundleURLStreamHandler.java.

Referenced by org.knopflerfish.framework.BundleURLStreamHandler.sameFile().

String org.knopflerfish.framework.BundleURLStreamHandler.toExternalForm ( URL  url  )  [protected]

Converts a bundle URL to a String.

Parameters:
url the URL.
Returns:
a string representation of the URL.

Definition at line 272 of file BundleURLStreamHandler.java.


The documentation for this class was generated from the following file:
Generated on Mon Jan 11 21:19:19 2010 for OpenMobileIS by  doxygen 1.5.4