question: public final void printSymbol ( CharSequence text ) throws IOException { if ( text == null ) { appendAscii ( "null.symbol" ) ; } else if ( text . length ( ) == 0 ) { throw new EmptySymbolException ( ) ; } else if ( symbolNeedsQuoting ( text , true ) ) { appendAscii ( '\'' ) ; printCodePoints ( text , SYMBOL_ESCAPE_CODES ) ; appendAscii ( '\'' ) ; } else { appendAscii ( text ) ; } }
target:  Print an Ion Symbol type. This method will check if symbol needs quoting