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)" ) ; }
Internal method for doing a simple indention write .