byte[] buffer = null; if (body != null) { try { buffer = body.toString().getBytes("UTF-8"); } catch (UnsupportedEncodingException e) { buffer = body.toString().getBytes(); } } return request(method, path, header, buffer != null ? new ByteArrayInputStream(buffer) : null, ok1, ok2, dst, handler);
return request(method, path, header, body, ok1, ok2, dst, handler, null);
    public HTTPStatus request(String method, String path, Map header, StringBuffer body, int ok1, int ok2, OutputStream dst, DefaultHandler handler) throws SVNException {        byte[] buffer = null;        if (body != null) {            try {                buffer = body.toString().getBytes("UTF-8");            } catch (UnsupportedEncodingException e) {                buffer = body.toString().getBytes();            }        }         return request(method, path, header, buffer != null ? new ByteArrayInputStream(buffer) : null, ok1, ok2, dst, handler);    }