protected synchronized InputStream getInputStream ( ) throws IOException { if ( isClosedOrPending ( ) ) { throw new IOException ( "Socket Closed" ) ; } if ( shut_rd ) { throw new IOException ( "Socket input is shutdown" ) ; } if ( socketInputStream == null ) { socketInputStream = new SocketInputStream ( this ) ; } return socketInputStream ; }
Gets an InputStream for this socket .