Code example for InputStream

Methods: close

0
            } catch (ClassNotFoundException e) {
                throw new RuntimeException(e);
            } finally { 
                if (in != null) {
                    try { 
                        in.close();
                    } catch (IOException e) {
                        //ignore 
                    } 
                } 
            } 
 
        } 
        return current;
    } 
 
    public synchronized void cleanUp(@Observes AfterSuite afterSuite) {
        if (current != null) {
            current.close();
            current = null;
Connect your IDE to all the code out there  Get Codota for Java