* * Navnet på kall metoden * må * fås i * Printwriter metoder, ellers utenforliggende metode samtaler * i mellom gjør det umulig å fastslå den faktiske * innringer * * /Override offentlig Print append (char c) {lås. låse(); try {setNameOfCaller (lock); returnere super.append (c); } finally {lock.unlock (); }}Override Offentlig Print append (CharSequence CSQ) {lock.lock (); try {setNameOfCaller (lock); returnere super.append (CSQ); } finally {lock.unlock (); }}Override Offentlig Print append (CharSequence CSQ, int start, int slutten) {lock.lock (); try {setNameOfCaller (lock); returnere super.
append (CSQ, start, slutt); } finally {lock.unlock (); }}Override Public void print (boolean b) {lock.lock (); try {setNameOfCaller (lock); super.print (b); } finally {lock.unlock (); }}Override Public voi