code: public void formatLine(String line, PrintWriter writer)
      {
          processingState.setLine(line);
          processingState.pwriter = writer;
          processingState = processingState.formatState.formatPartialLine(processingState);
          while (!processingState.isDoneWithLine())
          {
              processingState = processingState.formatState.formatPartialLine(processingState);
          }
      }
docs: blank line rules: 1) no consecutive blank line 2) no blank line after an open brace 3) no blank line before a closing brace