RESOLVED - # 99: Change StringBuffer deleteCharAt() to integer

http://bugs.koc.se/view.php?id=99

Added Base64 decoder
This commit is contained in:
Ziver Koc 2012-02-05 21:31:22 +00:00
parent e46ecc1dca
commit 6e890b81e1
8 changed files with 292 additions and 16 deletions

View file

@ -94,12 +94,12 @@ public abstract class ThreadedTCPNetworkServer extends Thread{
}
} catch(Exception e) {
logger.log(Level.SEVERE, null, e);
}
if( ss!=null ){
try{
ss.close();
}catch(IOException e){ logger.log(Level.SEVERE, null, e); }
} finally {
if( ss!=null ){
try{
ss.close();
}catch(IOException e){ logger.log(Level.SEVERE, null, e); }
}
}
}
@ -135,4 +135,12 @@ public abstract class ThreadedTCPNetworkServer extends Thread{
System.setProperty("javax.net.ssl.keyStore", keyStore.getAbsolutePath());
System.setProperty("javax.net.ssl.keyStorePassword", keyStorePass);
}
/**
* Stops the server and interrupts its internal thread.
* This is a permanent action that will not be able to recover from
*/
public void close(){
this.interrupt();
}
}