2003-06-24 Michael Koch <konqueror@gmx.de>
* java/net/SocketImpl.java (shutdownInput): Made it non-abstract method throwing an exception like in SUNs JRE. (shutdownOutput): Likewise. * java/net/SocketInputStream.java, java/net/SocketOutputStream.java: New files from classpath. From-SVN: r68416
This commit is contained in:
parent
59b8aa7e50
commit
ed1f9b7c13
4 changed files with 387 additions and 2 deletions
|
@ -287,7 +287,10 @@ public abstract class SocketImpl implements SocketOptions
|
|||
*
|
||||
* @exception IOException if an error occurs
|
||||
*/
|
||||
protected abstract void shutdownInput () throws IOException;
|
||||
protected void shutdownInput () throws IOException
|
||||
{
|
||||
throw new IOException ("Not implemented in this socket class");
|
||||
}
|
||||
|
||||
/**
|
||||
* Shut down the output side of this socket. Subsequent writes will
|
||||
|
@ -295,5 +298,8 @@ public abstract class SocketImpl implements SocketOptions
|
|||
*
|
||||
* @exception IOException if an error occurs
|
||||
*/
|
||||
protected abstract void shutdownOutput () throws IOException;
|
||||
protected void shutdownOutput () throws IOException
|
||||
{
|
||||
throw new IOException ("Not implemented in this socket class");
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue