Code example for PrintWriterPrinter

0
    } 
     
    @Override protected void dump(FileDescriptor fd, PrintWriter fout, String[] args) {
        super.dump(fd, fout, args);
         
        final Printer p = new PrintWriterPrinter(fout);
        /* 
        p.println("AwesomeIME state :"); 
        p.println("  Keyboard mode = " + mKeyboardSwitcher.getKeyboardMode()); 
        p.println("  mCapsLock=" + mCapsLock); 
        p.println("  mComposing=" + getComposing().toString()); 
        p.println("  predictionOn=" + predictionOn); 
        p.println("  mCorrectionMode=" + mCorrectionMode); 
        p.println("  mPredicting=" + isPredicting()); 
        p.println("  mAutoCorrectOn=" + mAutoCorrectOn); 
        p.println("  mAutoSpace=" + mAutoSpace); 
        p.println("  mCompletionOn=" + mCompletionOn); 
        p.println("  TextEntryState.state=" + TextEntryState.getState()); 
        p.println("  mSoundOn=" + mSoundOn); 
        p.println("  mVibrateOn=" + mVibrateOn); 
        */