@Override public void list(final PrintStream out) { if (out == null) { throw new NullPointerException(); } final StringBuilder buffer = new StringBuilder(80); final Enumeration<?> keys = propertyNames(); while (keys.hasMoreElements()) { appendProperty(buffer, keys); out.println(buffer.toString()); buffer.setLength(0); } }
@Override public void list(final PrintWriter writer) { if (writer == null) { throw new NullPointerException(); } final StringBuilder buffer = new StringBuilder(80); final Enumeration<?> keys = propertyNames(); while (keys.hasMoreElements()) { appendProperty(buffer, keys); writer.println(buffer.toString()); buffer.setLength(0); } }
public void list(final PrintStream out) { if (out == null) { throw new NullPointerException(); } final StringBuilder buffer = new StringBuilder(80); final Enumeration<?> keys = propertyNames(); while (keys.hasMoreElements()) { final String key = (String) keys.nextElement(); buffer.append(key); buffer.append('='); String property = (String) get(key); if (property == null) { property = defaults.getProperty(key); } if (property.length() > 40) { buffer.append(property.substring(0, 37)); buffer.append("..."); } else { buffer.append(property); } out.println(buffer.toString()); buffer.setLength(0); } }
public void list(final PrintWriter writer) { if (writer == null) { throw new NullPointerException(); } final StringBuilder buffer = new StringBuilder(80); final Enumeration<?> keys = propertyNames(); while (keys.hasMoreElements()) { final String key = (String) keys.nextElement(); buffer.append(key); buffer.append('='); String property = (String) get(key); while (property == null) { property = defaults.getProperty(key); } if (property.length() > 40) { buffer.append(property.substring(0, 37)); buffer.append("..."); } else { buffer.append(property); } writer.println(buffer.toString()); buffer.setLength(0); } }
public void list(PrintStream out) { if (out == null) { throw new NullPointerException(); } StringBuffer buffer = new StringBuffer(80); Enumeration<?> keys = propertyNames(); while (keys.hasMoreElements()) { String key = (String) keys.nextElement(); buffer.append(key); buffer.append('='); String property = (String) get(key); if (property == null) { property = defaults.getProperty(key); } if (property.length() > 40) { buffer.append(property.substring(0, 37)); buffer.append("..."); } else { buffer.append(property); } out.println(buffer.toString()); buffer.setLength(0); } }
public void list(PrintWriter writer) { if (writer == null) { throw new NullPointerException(); } StringBuffer buffer = new StringBuffer(80); Enumeration<?> keys = propertyNames(); while (keys.hasMoreElements()) { String key = (String) keys.nextElement(); buffer.append(key); buffer.append('='); String property = (String) get(key); while (property == null) { property = defaults.getProperty(key); } if (property.length() > 40) { buffer.append(property.substring(0, 37)); buffer.append("..."); } else { buffer.append(property); } writer.println(buffer.toString()); buffer.setLength(0); } }