The generic type will be either byte or char according to the stream being processed. So, the problem is that I can't do the cast:
Hashtable<E, Integer> hs = new Hashtable<E, Integer>();
So, How can I handle this ?
FileOutputStream out .... byte x = (byte) E; ... out.write(x);