From ed73dbf357aff41edcbab401a94e5fbc266d9391 Mon Sep 17 00:00:00 2001 From: Mufaddal Makati Date: Fri, 7 Aug 2015 13:09:49 -0700 Subject: First Commit --- .../main/java/com/cablelabs/vcpe/common/Dbg.java | 24 ++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 common/src/main/java/com/cablelabs/vcpe/common/Dbg.java (limited to 'common/src/main/java/com') diff --git a/common/src/main/java/com/cablelabs/vcpe/common/Dbg.java b/common/src/main/java/com/cablelabs/vcpe/common/Dbg.java new file mode 100644 index 0000000..b98f1e1 --- /dev/null +++ b/common/src/main/java/com/cablelabs/vcpe/common/Dbg.java @@ -0,0 +1,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; + } +} -- cgit 1.2.3-korg