コード例 #1
0
 public void closeSession() {
   // #if polish.api.fileconnection
   try {
     session.close();
   } catch (IOException e) {
     logger.error(
         Locale.get(
             "fileexportsession.FailedToCloseConnection") /*Failed to close connection after storing to file*/);
     e.printStackTrace();
   }
   // #endif
 }
コード例 #2
0
ファイル: PushUtils.java プロジェクト: btasdemir/BBNearU
 /** Safely closes connection and streams */
 public static void close(Connection conn, InputStream is, OutputStream os) {
   if (os != null) {
     try {
       os.close();
     } catch (IOException e) {
     }
   }
   if (is != null) {
     try {
       is.close();
     } catch (IOException e) {
     }
   }
   if (conn != null) {
     try {
       conn.close();
     } catch (IOException e) {
     }
   }
 }
コード例 #3
0
ファイル: Connection.java プロジェクト: karolaug/bluecove
 public void close() throws IOException {
   impl.close();
 }