/** * * * <h1>print</h1> * * オーバーライド * * @see java.io.PrintStream#print(java.lang.String) */ @Override public void print(String s) { String nowtime = null; if (timeDumpofMain | timeDumpofSub) { nowtime = RSystem.getDateTime(); } this.subStream.print(timeDumpofSub ? nowtime + " " + s : s); super.print(timeDumpofMain ? nowtime + " " + s : s); }
/** * * * <h1>print</h1> * * オーバーライド * * @see java.io.PrintStream#print(java.lang.Object) */ @Override public void print(Object obj) { String nowtime = null; if (timeDumpofMain | timeDumpofSub) { nowtime = RSystem.getDateTime(); } String objString = String.valueOf(obj); this.subStream.print(timeDumpofSub ? nowtime + " " + objString : objString); super.print(timeDumpofMain ? nowtime + " " + objString : objString); }
/** * * * <h1>print</h1> * * オーバーライド * * @see java.io.PrintStream#print(char[]) */ @Override public void print(char[] s) { String nowtime = null; if (timeDumpofMain | timeDumpofSub) { nowtime = RSystem.getDateTime(); } String sString = String.valueOf(s); this.subStream.print(timeDumpofSub ? nowtime + " " + sString : sString); super.print(timeDumpofMain ? nowtime + " " + sString : sString); }