1 28 29 package org.objectweb.util.misc.lib; 30 31 43 44 public abstract class DefaultStringBufferizableBase 45 extends StringBufferHelper 46 implements org.objectweb.util.misc.api.StringBufferizable 47 { 48 54 60 61 public 62 DefaultStringBufferizableBase() 63 { 64 } 65 66 72 79 abstract protected void 80 appendInternalState(StringBuffer sb); 81 82 88 96 public String 97 toString() 98 { 99 StringBuffer sb = new StringBuffer (); 101 toStringBuffer(sb); 102 return sb.toString(); 103 } 104 105 111 119 public void 120 toStringBuffer(java.lang.StringBuffer sb) 121 { 122 sb.append(getClass().getName()); 124 sb.append('['); 125 126 appendInternalState(sb); 128 129 sb.append(']'); 130 } 131 132 } 138 | Popular Tags |