code: public static void printSymbol(Appendable out, CharSequence text)
          throws IOException
      {
          if (text == null)
          {
              out.append("null.symbol");
          }
          else if (symbolNeedsQuoting(text, true))
          {
              printQuotedSymbol(out, text);
          }
          else
          {
              out.append(text);
          }
      }
docs: Prints the text as an Ion symbol, including surrounding single-quotes if
  they are necessary.  Operator symbols such as {@code '+'} are quoted.
  If the {@code text} is null, this prints {@code null.symbol}.
  
  @param out the stream to receive the Ion data.
  @param text the symbol text; may be {@code null}.
  
  @throws IOException if the {@link Appendable} throws an exception.
  
  @see #printSymbol(CharSequence)