RESOLVED - # 99: Change StringBuffer deleteCharAt() to integer
http://bugs.koc.se/view.php?id=99 Added Base64 decoder
This commit is contained in:
parent
e46ecc1dca
commit
6e890b81e1
8 changed files with 292 additions and 16 deletions
|
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue