byte[] wordBytes; try { hashBytes= new ByteArrayWrapper(hash.getBytes(UTF_8)); wordBytes= word.getBytes(UTF_8); } catch (UnsupportedEncodingException e) {
byte[] wordBytes; try { hashBytes= new ByteArrayWrapper(hash.getBytes(UTF_8)); wordBytes= word.getBytes(UTF_8); } catch (UnsupportedEncodingException e) {
/** * Returns all candidates with the same phonetic hash. * * @param hash * The hash to retrieve the candidates of * @return Array of candidates for the phonetic hash */ protected final Object getCandidates(final String hash) { ByteArrayWrapper hashBytes; try { hashBytes= new ByteArrayWrapper(hash.getBytes(UTF_8)); } catch (UnsupportedEncodingException e) { JavaPlugin.log(e); return null; } return fHashBuckets.get(hashBytes); }
/** * Returns all candidates with the same phonetic hash. * * @param hash * The hash to retrieve the candidates of * @return Array of candidates for the phonetic hash */ protected final Object getCandidates(final String hash) { ByteArrayWrapper hashBytes; try { hashBytes= new ByteArrayWrapper(hash.getBytes(UTF_8)); } catch (UnsupportedEncodingException e) { JavaPlugin.log(e); return null; } return fHashBuckets.get(hashBytes); }