Save This Page
Home » openjdk-7 » java » net » [javadoc | source]
    1   /*  ZNet - Java Compression Layer for a new Socket Factory
    2       Copyright (C) 1999, Free Software Rulez
    3   
    4       This program is free software; you can redistribute it and/or modify
    5       it under the terms of the GNU General Public License as published by
    6       the Free Software Foundation; either version 2 of the License, or
    7       (at your option) any later version.
    8   
    9       This program is distributed in the hope that it will be useful,
   10       but WITHOUT ANY WARRANTY; without even the implied warranty of
   11       MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   12       GNU General Public License for more details.
   13   
   14       You should have received a copy of the GNU General Public License
   15       along with this program; if not, write to the Free Software
   16       Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
   17   
   18           The author of this program may be contacted at morgiaclaudio@yahoo.it. */
   19   
   20   package java.net;
   21   
   22   /**
   23    * This class provides a new socket factory and it's the main entry point into the compression layer.
   24    * @see java.net.SocketImplFactory
   25    * @author <a href="mailto:morgiaclaudio@yahoo.it">Claudio Morgia</a>
   26    * @version 1.0
   27    */
   28   public class ZSocketImplFactory implements SocketImplFactory {
   29       /**
   30        * This method creates an instance of our compressed socket implementation.
   31        * @see java.net.ZSocketImpl our compressed socket implementation
   32        * @see java.net.SocketImpl the interface to follow
   33        * @return the compressed socket implementation
   34        */
   35       public SocketImpl createSocketImpl() {
   36   	return new ZSocketImpl();
   37       }
   38   }

Save This Page
Home » openjdk-7 » java » net » [javadoc | source]