FileDocCategorySizeDatePackage
NetworkConnectionBase.javaAPI DocphoneME MR2 API (J2ME)2236Wed May 02 18:00:14 BST 2007com.sun.midp.io

NetworkConnectionBase

public abstract class NetworkConnectionBase extends BufferedConnectionAdapter
Base class for Network Connection protocols. This class allows one to initialize the network, if necessary, before any networking code is called.

Fields Summary
Constructors Summary
protected NetworkConnectionBase(int sizeOfBuffer)
Initializes the connection.

param
sizeOfBuffer size of the internal buffer or 0 for the default size

 
        initializeInternal();
    
        super(sizeOfBuffer);
    
Methods Summary
private static native voidinitializeInternal()
Initialize any possible native networking code.

public static voidinitializeNativeNetwork()
This is so not StreamConnection classes can intialize the network if they are loaded first.

        /*
         * This method just has to be a reference to
         * get this class loaded and cause the
         * class initializer to initialize the network.
         */