Code example for Collator

Methods: setDecompositionsetStrength

0
    private static final long serialVersionUID = -8389462290545629792L;
 
    // use a collator to relax when distinguishing between lowercase und uppercase letters 
    private static final Collator insensitiveCollator = Collator.getInstance(Locale.US);
    static { 
        insensitiveCollator.setStrength(Collator.SECONDARY);
        insensitiveCollator.setDecomposition(Collator.NO_DECOMPOSITION);
    } 
 
    int recordCounter;
 
    private final DigestURI source;
 
    public ResumptionToken(final DigestURI source, final byte[] b) throws IOException {
        super((Collator) insensitiveCollator.clone());
        this.source = source;
        this.recordCounter = 0;
        new Parser(b);
    } 
 
    /*