throws LDAPException final byte[] normValue = normalize(value).getValue(); normalizeSubstring(subInitial, SUBSTRING_TYPE_SUBINITIAL).getValue(); if (normValue.length < normSubInitial.length) normalizeSubstring(subAny[i],SUBSTRING_TYPE_SUBANY).getValue(); normalizeSubstring(subFinal, SUBSTRING_TYPE_SUBFINAL).getValue(); int finalStartPos = normValue.length - normSubFinal.length; if (finalStartPos < pos)
/** * {@inheritDoc} */ @Override() public boolean matchesSubstring(final ASN1OctetString value, final ASN1OctetString subInitial, final ASN1OctetString[] subAny, final ASN1OctetString subFinal) { try { return super.matchesSubstring(value, subInitial, subAny, subFinal); } catch (LDAPException le) { debugException(le); // This should never happen, as the only reason the superclass version of // this method will throw an exception is if an exception is thrown by // normalize or normalizeSubstring. return false; } }
/** * {@inheritDoc} */ @Override() public int compareValues(final ASN1OctetString value1, final ASN1OctetString value2) { try { return super.compareValues(value1, value2); } catch (LDAPException le) { debugException(le); // This should never happen, as the only reason the superclass version of // this method will throw an exception is if an exception is thrown by // normalize or normalizeSubstring. return 0; } }
throws LDAPException final byte[] normValue = normalize(value).getValue(); normalizeSubstring(subInitial, SUBSTRING_TYPE_SUBINITIAL).getValue(); if (normValue.length < normSubInitial.length) normalizeSubstring(subAny[i],SUBSTRING_TYPE_SUBANY).getValue(); normalizeSubstring(subFinal, SUBSTRING_TYPE_SUBFINAL).getValue(); int finalStartPos = normValue.length - normSubFinal.length; if (finalStartPos < pos)
/** * {@inheritDoc} */ @Override() public boolean matchesSubstring(final ASN1OctetString value, final ASN1OctetString subInitial, final ASN1OctetString[] subAny, final ASN1OctetString subFinal) { try { return super.matchesSubstring(value, subInitial, subAny, subFinal); } catch (LDAPException le) { debugException(le); // This should never happen, as the only reason the superclass version of // this method will throw an exception is if an exception is thrown by // normalize or normalizeSubstring. return false; } }
/** * {@inheritDoc} */ @Override() public int compareValues(final ASN1OctetString value1, final ASN1OctetString value2) { try { return super.compareValues(value1, value2); } catch (LDAPException le) { debugException(le); // This should never happen, as the only reason the superclass version of // this method will throw an exception is if an exception is thrown by // normalize or normalizeSubstring. return 0; } }