Mercurial > hg > Applications > TreeVNC
diff src/main/java/com/glavsoft/rfb/encoding/decoder/DecodersContainer.java @ 326:1d4d5055a288
add error message, add assure stream close.
author | oc |
---|---|
date | Sun, 01 Feb 2015 15:30:17 +0900 |
parents | 433c79184c05 |
children |
line wrap: on
line diff
--- a/src/main/java/com/glavsoft/rfb/encoding/decoder/DecodersContainer.java Sun Feb 01 06:44:56 2015 +0900 +++ b/src/main/java/com/glavsoft/rfb/encoding/decoder/DecodersContainer.java Sun Feb 01 15:30:17 2015 +0900 @@ -67,15 +67,17 @@ decoders.put(enc, knownDecoders.get(enc).newInstance()); } catch (InstantiationException e) { logError(enc, e); + System.out.println("cannot create decoders instance."); } catch (IllegalAccessException e) { logError(enc, e); + System.out.println("cannot access class or constructor."); } } } } private void logError(EncodingType enc, Exception e) { - Logger.getLogger(this.getClass().getName()).severe("Can not instantiate decoder for encoding type '" + + Logger.getLogger(this.getClass().getName()).severe("Cannot instantiate decoder for encoding type '" + enc.getName() + "' " + e.getMessage()); }