KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > codehaus > spice > netserve > connection > impl > ExceptOnCloseServerSocket


1 /*
2  * Copyright (C) The Spice Group. All rights reserved.
3  *
4  * This software is published under the terms of the Spice
5  * Software License version 1.1, a copy of which has been included
6  * with this distribution in the LICENSE.txt file.
7  */

8 package org.codehaus.spice.netserve.connection.impl;
9
10 import java.io.IOException JavaDoc;
11 import java.net.ServerSocket JavaDoc;
12
13 /**
14  *
15  * @author Peter Donald
16  * @version $Revision: 1.2 $ $Date: 2004/03/21 23:42:59 $
17  */

18 class ExceptOnCloseServerSocket
19    extends ServerSocket JavaDoc
20 {
21    static final IOException JavaDoc EXCEPTION = new IOException JavaDoc( "No Close - ha ha!" );
22
23    public ExceptOnCloseServerSocket()
24       throws IOException JavaDoc
25    {
26    }
27
28    public void close() throws IOException JavaDoc
29    {
30       throw EXCEPTION;
31    }
32 }
33
Popular Tags