Skip to content

Commit 681381d

Browse files
Fix documentation issues
1 parent 6b50a04 commit 681381d

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

google-http-client/src/main/java/com/google/api/client/http/UrlEncodedContent.java

+9-4
Original file line numberDiff line numberDiff line change
@@ -53,25 +53,30 @@ public class UrlEncodedContent extends AbstractHttpContent {
5353
/** Use URI Path encoder flag. False by default (use legacy and deprecated escapeUri) */
5454
private boolean uriPathEncodingFlag;
5555

56-
/** @param data key name/value data */
56+
/**
57+
* Initialize the UrlEncodedContent with the legacy and deprecated escapeUri encoder
58+
* @param data key name/value data
59+
* */
5760
public UrlEncodedContent(Object data) {
5861
super(UrlEncodedParser.MEDIA_TYPE);
5962
setData(data);
6063
this.uriPathEncodingFlag = false;
6164
}
6265

6366
/**
67+
* Initialize the UrlEncodedContent with our without the legacy and deprecated escapeUri encoder
6468
* @param data key name/value data
65-
* @param useUriPathEncoding Escapes the string value so it can be safely included in URI path segments. For details on
66-
* * escaping URIs, see <a href="http://tools.ietf.org/html/rfc3986#section-2.4">RFC 3986 - section
67-
* * 2.4</a>
69+
* @param useUriPathEncoding Escapes the string value so it can be safely included in URI path segments.
70+
* For details on escaping URIs, see <a href="http://tools.ietf.org/html/rfc3986#section-2.4">RFC 3986 -
71+
* section 2.4</a>
6872
*/
6973
public UrlEncodedContent(Object data, Boolean useUriPathEncoding) {
7074
super(UrlEncodedParser.MEDIA_TYPE);
7175
setData(data);
7276
this.uriPathEncodingFlag = useUriPathEncoding;
7377
}
7478

79+
@Override
7580
public void writeTo(OutputStream out) throws IOException {
7681
Writer writer = new BufferedWriter(new OutputStreamWriter(out, getCharset()));
7782
boolean first = true;

0 commit comments

Comments
 (0)