aboutsummaryrefslogtreecommitdiffstats
path: root/common/src/main/java/com/cablelabs/vcpe/common/Dbg.java
blob: b98f1e1f2c6fcb6dfce2a6cc4890e6b9f6af0523 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
package com.cablelabs.vcpe.common;

/**
 * Created by steve on 5/25/15.
 */
public class Dbg {

    private static final String TAB = "    ";


    static public void p( String s) { p( 0, "", s);}
    static public void p( int tabs, String s) { p( tabs, "", s);}
    static public void p( int tabs, String pre, String s){
        System.out.println(tab(tabs) + pre + s);
    }

    static private String tab (int tabs) {
        String t = new String();
        for ( int i = 0; i < tabs; i++ ) {
            t = t + TAB;
        }
        return t;
    }
}