Java tutorial
//package com.java2s; /* * Copyright (C) 2002-2014 FlyMine * * This code may be freely distributed and modified under the * terms of the GNU Lesser General Public Licence. This should * be distributed with the code. See the LICENSE file for more * information or http://www.gnu.org/copyleft/lesser.html. * */ import java.io.ByteArrayOutputStream; public class Main { private static void writeIndentation(ByteArrayOutputStream os, int indent) { for (int j = 0; j < indent; j++) { os.write(' '); os.write(' '); } } }