private boolean matchLong ( final ByteBuffer bbuf , final ByteOrder bo , final boolean needMask , final long lMask ) throws IOException { bbuf . order ( bo ) ; long got ; final String testContent = getContent ( ) ; if ( testContent . startsWith ( "0x" ) ) { got = Long . parseLong ( testContent . substring ( 2 ) , 16 ) ; } else if ( testContent . startsWith ( "&" ) ) { got = Long . parseLong ( testContent . substring ( 3 ) , 16 ) ; } else { got = Long . parseLong ( testContent ) ; } long found = bbuf . getInt ( ) ; if ( needMask ) { found = ( short ) ( found & lMask ) ; } if ( got != found ) { return false ; } return true ; }
Match long .