public static Short convertToByte ( RLPElement rpe ) { Short result = 0 ; if ( ( rpe . getRawData ( ) != null ) || ( rpe . getRawData ( ) . length == 1 ) ) { result = ( short ) ( rpe . getRawData ( ) [ 0 ] & 0xFF ) ; } return result ; }
Converts a byte in a RLPElement to byte