1 /* |
1 /* |
2 * Copyright (c) 1999, 2010, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 1999, 2011, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. Oracle designates this |
7 * published by the Free Software Foundation. Oracle designates this |
327 */ |
327 */ |
328 public void printErrLines(String key, Object... args) { |
328 public void printErrLines(String key, Object... args) { |
329 printLines(errWriter, localize(key, args)); |
329 printLines(errWriter, localize(key, args)); |
330 } |
330 } |
331 |
331 |
332 |
|
333 /** Print the text of a message to the noticeWriter stream, |
332 /** Print the text of a message to the noticeWriter stream, |
334 * translating newlines appropriately for the platform. |
333 * translating newlines appropriately for the platform. |
335 */ |
334 */ |
336 public void printNoteLines(String key, Object... args) { |
335 public void printNoteLines(String key, Object... args) { |
337 printLines(noticeWriter, localize(key, args)); |
336 printLines(noticeWriter, localize(key, args)); |
|
337 } |
|
338 |
|
339 /** |
|
340 * Print the localized text of a "verbose" message to the |
|
341 * noticeWriter stream. |
|
342 */ |
|
343 public void printVerbose(String key, Object... args) { |
|
344 printLines(noticeWriter, localize("verbose." + key, args)); |
338 } |
345 } |
339 |
346 |
340 protected void directError(String key, Object... args) { |
347 protected void directError(String key, Object... args) { |
341 printErrLines(key, args); |
348 printErrLines(key, args); |
342 errWriter.flush(); |
349 errWriter.flush(); |