What’s the tab for

Note: OS is an OutputStream

               private int numtab=0;
               private static final String tab="\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";

               OS.write(writeline(""));
               if(IT.getConfigFile()!=null && IT.getConfigFile().length()>0)
               {
                    numtab++;
                    OS.write(writeline(""));
                    writeParamHide(IT);
                    numtab--;
               }
               writeParam(IT);
               OS.write(writeline(""));
              
              
               private byte[] writeline(String str)
               {
                    return (tab.substring(0, numtab)+str+"\n").getBytes();
               }

Now I’d understood…

Actually in the production codebase of a biggest italian TLC company

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s