Code example for InputStream

Methods: close

0
        } catch (Exception e) {
            throw new Exception("Cannot retrieve content from " + url, e);
        } 
 
        try { 
            ProjectManager.singleton.importProject(projectID, inputStream, !urlString.endsWith(".tar"));
        } finally { 
            inputStream.close();
        } 
    } 
 
 
}