public static byte decodeByte ( byte [ ] src , int srcOffset ) throws CorruptEncodingException { try { return ( byte ) ( src [ srcOffset ] ^ 0x80 ) ; } catch ( IndexOutOfBoundsException e ) { throw new CorruptEncodingException ( null , e ) ; } }
Decodes a signed byte from exactly 1 byte .