FileDocCategorySizeDatePackage
MockAbstractSelector.javaAPI DocAndroid 1.5 API3594Wed May 06 22:41:04 BST 2009org.apache.harmony.nio.tests.java.nio.channels.spi

MockAbstractSelector

public class MockAbstractSelector extends AbstractSelector

Fields Summary
public boolean
isImplCloseSelectorCalled
private Set
keys
public boolean
isRegisterCalled
Constructors Summary
public MockAbstractSelector(SelectorProvider arg0)

    
       
        super(arg0);
    
Methods Summary
public java.util.SetgetCancelledKeys()

        return super.cancelledKeys();
    
protected voidimplCloseSelector()

        isImplCloseSelectorCalled = true;
    
public java.util.Setkeys()

        return keys;
    
public voidmockDeregister(java.nio.channels.spi.AbstractSelectionKey key)

        super.deregister(key);
    
public static org.apache.harmony.nio.tests.java.nio.channels.spi.MockAbstractSelectoropenSelector()

        return new MockAbstractSelector(SelectorProvider.provider());
    
protected java.nio.channels.SelectionKeyregister(java.nio.channels.spi.AbstractSelectableChannel arg0, int arg1, java.lang.Object arg2)

        isRegisterCalled = true;
        
        SelectionKey key = new MockSelectionKey(this, arg0);
        keys.add(key);
        return key;
    
public intselect(long arg0)

        return 0;
    
public intselect()

        return 0;
    
public intselectNow()

        return 0;
    
public java.util.SetselectedKeys()

        return null;
    
public voidsuperBegin()

        super.begin();
    
public voidsuperEnd()

        super.end();
    
public java.nio.channels.Selectorwakeup()

        return null;