private String mkStr(char kar, int num) { StringBuffer sb = new StringBuffer(num); for (int ix = 0; ix < num; ix++) { sb.append(kar); } return sb.toString(); }
public String toString() { StringBuffer sb = new StringBuffer(url.length() + 17); sb.append("[MyMockCachedUrl: "); sb.append(url); sb.append("]"); return sb.toString(); }
private String makeContent(String url, String openTag, String closeTag) { StringBuffer sb = new StringBuffer(100); sb.append("<html><head><title>Test</title></head><body>"); sb.append(openTag); sb.append(url); sb.append(">"); sb.append(closeTag); sb.append("</body></html>"); return sb.toString(); }