Hi, the code isn't really readable :)
Please check the following:
try {
char[] C = null;
checkInput(IS , C);
} catch (IOException ex) { ... }
char[] CB = C;
reader.read(CB , 0 , 20);
CB = C is null (as defined). Try C = new char[20] instead.
Regards
Michael
