question: private int decodeSize ( byte [ ] buffer ) { BigInteger bi = new BigInteger ( buffer ) ; int tmpSize = bi . intValue ( ) ; if ( tmpSize < 0 ) { logger . warning ( "Invalid Frame Size of:" + tmpSize + "Decoded from bin:" + Integer . toBinaryString ( tmpSize ) + "Decoded from hex:" + Integer . toHexString ( tmpSize ) ) ; } return tmpSize ; }
target:  Read Frame Size, which has to be decoded