code: private void writeIndention(Writer writer, int indentDepth)
      throws IOException
      {
          if (logger.isLoggable(Level.FINER)) logger.entering(className, "writeIndention(Writer, int)");
  
          try
          {
              for (int i = 0; i < indentDepth; i++) 
              {
                  writer.write(indent);
              }
          }
          catch (Exception ex)
          {
              IOException iox = new IOException("Error occurred on serialization of JSON text.");
              iox.initCause(ex);
              throw iox;
          }
  
          if (logger.isLoggable(Level.FINER)) logger.exiting(className, "writeIndention(Writer, int)");
      }
docs: Internal method for doing a simple indention write.
  @param writer The writer to use while writing the JSON text.
  @param indentDepth How deep to indent the text.
  @throws IOException Trhown if an error occurs on write.