Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;
import java.io.BufferedReader;

import java.io.IOException;

import java.io.StringReader;

public class Main {
    public static String tabText(String xmlResponse) {
        StringBuffer result = new StringBuffer("");
        try {
            BufferedReader br = new BufferedReader(new StringReader(xmlResponse));
            String line = br.readLine();
            while (line != null) {
                result.append("\t" + line + "\n");
                line = br.readLine();
            }
        } catch (IOException e) {
            e.printStackTrace();
        }
        return result.toString();
    }
}