FileDocCategorySizeDatePackage
RuleBasedBreakIterator.javaAPI DocAndroid 1.5 API4743Wed May 06 22:41:06 BST 2009java.text

RuleBasedBreakIterator

public class RuleBasedBreakIterator extends BreakIterator

Fields Summary
Constructors Summary
RuleBasedBreakIterator(com.ibm.icu4jni.text.BreakIterator iterator)

        super(iterator);
    
Methods Summary
public java.lang.Objectclone()

        RuleBasedBreakIterator cloned = (RuleBasedBreakIterator) super.clone();
        cloned.wrapped = (com.ibm.icu4jni.text.RuleBasedBreakIterator) wrapped
                .clone();
        return cloned;
    
public intcurrent()

        return wrapped.current();
    
public booleanequals(java.lang.Object o)

        if (!(o instanceof RuleBasedBreakIterator)) {
            return false;
        }
        return wrapped.equals(((RuleBasedBreakIterator) o).wrapped);
    
public intfirst()

        return wrapped.first();
    
public intfollowing(int offset)

        validateOffset(offset);
        return wrapped.following(offset);
    
public java.text.CharacterIteratorgetText()

        return wrapped.getText();
    
public inthashCode()

        return wrapped.hashCode();
    
public booleanisBoundary(int offset)

        validateOffset(offset);
        return wrapped.isBoundary(offset);
    
public intlast()

        return wrapped.last();
    
public intnext()

        return wrapped.next();
    
public intnext(int n)

        return wrapped.next(n);
    
public intpreceding(int offset)

        validateOffset(offset);
        return wrapped.preceding(offset);
    
public intprevious()

        return wrapped.previous();
    
public voidsetText(java.text.CharacterIterator newText)

        // call a method to check if null pointer
        newText.current();
        wrapped.setText(newText);
    
public java.lang.StringtoString()

        return wrapped.toString();
    
private voidvalidateOffset(int offset)

        CharacterIterator it = wrapped.getText();
        if (offset < it.getBeginIndex() || offset >= it.getEndIndex()) {
            throw new IllegalArgumentException();
        }