diff options
author | Mufaddal Makati <mmakati@mmakatimbpr15.cablelabs.com> | 2015-08-07 13:09:49 -0700 |
---|---|---|
committer | Mufaddal Makati <mmakati@mmakatimbpr15.cablelabs.com> | 2015-08-07 13:09:49 -0700 |
commit | ed73dbf357aff41edcbab401a94e5fbc266d9391 (patch) | |
tree | e3561a9290e4bd0de19704228867ec91910e68ed /common/src/main/java/com/cablelabs/vcpe | |
parent | f44f4aa8b5eb244fc7603c17e875eebf0f3b0b67 (diff) |
First Commit
Diffstat (limited to 'common/src/main/java/com/cablelabs/vcpe')
-rw-r--r-- | common/src/main/java/com/cablelabs/vcpe/common/Dbg.java | 24 |
1 files changed, 24 insertions, 0 deletions
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; + } +} |