org.net2map.pov.p2p.ToolBox Class Reference

List of all members.

Detailed Description

Author:
moi

Definition at line 38 of file ToolBox.java.

Public Member Functions

 ToolBox ()
 Creates a new instance of ToolBox.


Static Public Member Functions

PipeID StringToPipeID (PeerGroupID paramPeerGroupID, String paramString)
String StringToIDString (String paramString)
java.net.URL StringToID (String paramString)
String extractStringFromMessage (Message paramMessage, String paramElementName)
Message makeStringMessage (String paramContent, String paramElementName)
String getWebPage (URL url)
 Downloads the web page specified by the given URL object.

String getStringInWebPage (String paramStringName, String paramWebPage)
void main (String[] args)
 For unit testiong only.


Static Private Attributes

org.apache.log4j.Logger logger


Constructor & Destructor Documentation

org.net2map.pov.p2p.ToolBox.ToolBox  ) 
 

Creates a new instance of ToolBox.

Definition at line 43 of file ToolBox.java.


Member Function Documentation

String org.net2map.pov.p2p.ToolBox.extractStringFromMessage Message  paramMessage,
String  paramElementName
[static]
 

Definition at line 107 of file ToolBox.java.

String org.net2map.pov.p2p.ToolBox.getStringInWebPage String  paramStringName,
String  paramWebPage
[static]
 

Definition at line 159 of file ToolBox.java.

References org.net2map.pov.p2p.ToolBox.logger.

String org.net2map.pov.p2p.ToolBox.getWebPage URL  url  )  [static]
 

Downloads the web page specified by the given URL object.

Parameters:
url The URL object that the page will be downloaded from.
Returns:
A String containing the contents of the page. No extra parsing work is done on the page.

Definition at line 128 of file ToolBox.java.

Referenced by org.net2map.pov.p2p.ToolBox.main().

void org.net2map.pov.p2p.ToolBox.main String[]  args  )  [static]
 

For unit testiong only.

Parameters:
args the command-line arguments. Ignored by this app.

Definition at line 186 of file ToolBox.java.

References org.net2map.pov.p2p.ToolBox.getWebPage(), and org.net2map.pov.p2p.ToolBox.StringToID().

Here is the call graph for this function:

Message org.net2map.pov.p2p.ToolBox.makeStringMessage String  paramContent,
String  paramElementName
[static]
 

Definition at line 113 of file ToolBox.java.

java.net.URL org.net2map.pov.p2p.ToolBox.StringToID String  paramString  )  [static]
 

Definition at line 91 of file ToolBox.java.

References org.net2map.pov.p2p.ToolBox.StringToIDString().

Referenced by org.net2map.pov.p2p.ToolBox.main().

Here is the call graph for this function:

String org.net2map.pov.p2p.ToolBox.StringToIDString String  paramString  )  [static]
 

Definition at line 76 of file ToolBox.java.

Referenced by org.net2map.pov.p2p.ToolBox.StringToID().

PipeID org.net2map.pov.p2p.ToolBox.StringToPipeID PeerGroupID  paramPeerGroupID,
String  paramString
[static]
 

Definition at line 46 of file ToolBox.java.


Member Data Documentation

org.apache.log4j.Logger org.net2map.pov.p2p.ToolBox.logger [static, private]
 

Initial value:

 
    org.apache.log4j.Logger.getLogger(ToolBox.class.getName())

Definition at line 40 of file ToolBox.java.

Referenced by org.net2map.pov.p2p.ToolBox.getStringInWebPage().


The documentation for this class was generated from the following file:
Accueil | Téléchargement | Manuel | Doc. technique | Sources CVS | Faq | Nous contacter
©2003 - All Rights Reserved