Code example for Handler

Methods: flush

0
    } 
 
    public void flush() { 
        Handler t = resolve();
        if(t!=null)
            t.flush();
    } 
 
    public void close() throws SecurityException { 
        Handler t = resolve();
        if(t!=null)
            t.close();
    } 
 
    private Handler resolve() {
        Handler r = target.get();
        if(r==null)
            logger.removeHandler(this);
        return r;
    }