Code example for LocalSocketAddress

0
    // States 
    public enum State { 
        UNLOCKED, LOCKED, UNINITIALIZED
    }; 
 
    private static final LocalSocketAddress sAddress = new LocalSocketAddress(
            "keystore", LocalSocketAddress.Namespace.RESERVED);
 
    private int mError = NO_ERROR;
 
    private KeyStore() { 
    } 
 
    public static KeyStore getInstance() { 
        return new KeyStore(); 
    } 
 
    public State state() { 
        execute('t'); 
        switch (mError) {
        case NO_ERROR: