Array parm to varargs.
Check type before cast.
Inner classes should be static.
Be explicit about encoding.
Avoid protected fields.  Use internal getters.
Fix Sonar warning: Redundant throws.
Fix Sonar warnings: magic numbers.