com.submersion.jspshop.adminbrowse
Class NetConnect

java.lang.Object
  |
  +--com.submersion.jspshop.adminbrowse.NetConnect

public class NetConnect
extends java.lang.Object

Does the underlying networking flow for the AdminBrowse Applet

See Also:
AdminBrowse

Field Summary
(package private)  java.util.HashMap data
          HashMap containing the data returned from the URL.
 
Constructor Summary
NetConnect(java.lang.String urlString)
          Calls the initialise() function that Connects to the URL passed, and constructs the HashMap for the data.
 
Method Summary
private  void buildData(java.io.BufferedInputStream buff)
          Takes the raw data from initialise, and builds it into a HashMap
 java.util.HashMap getHashData()
          Returns the HashMap
private  void initialise(java.lang.String urlString)
          This code is called by the constructor and actually does the data connection to the URL.
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

data

java.util.HashMap data
HashMap containing the data returned from the URL.
Constructor Detail

NetConnect

public NetConnect(java.lang.String urlString)
Calls the initialise() function that Connects to the URL passed, and constructs the HashMap for the data.
Parameters:
urlString - The URL in String format of the Page that gives the Data for the AdminBrowse applet.
Method Detail

getHashData

public java.util.HashMap getHashData()
Returns the HashMap
Returns:
A HashMap of the data in the URL passed.

initialise

private void initialise(java.lang.String urlString)
This code is called by the constructor and actually does the data connection to the URL. It then calls BuidlData to construct a HashMap of the data.
Parameters:
urlString - The URL where to connect to, to get the data required.

buildData

private void buildData(java.io.BufferedInputStream buff)
                throws java.io.IOException
Takes the raw data from initialise, and builds it into a HashMap
Parameters:
buff - BufferedInputStream containing URL data
Throws:
java.io.IOException - See the BufferedInputStream IOException