private static byte hexVal ( byte ch ) throws IOException { if ( ( ch >= ' ' ) && ( ch <= ' ' ) ) { return ( byte ) ( ( char ) ch - ' ' ) ; } else if ( ( ch >= ' ' ) && ( ch <= ' ' ) ) { return ( byte ) ( ( char ) ch - ' ' + 10 ) ; } else { throw new ProtocolException ( "Expected hex character" ) ; } }
corresponding hex value