Searched refs:contentLength (Results 1 – 4 of 4) sorted by relevance
359 public void setFixedLengthStreamingMode (int contentLength) { in setFixedLengthStreamingMode() argument366 if (contentLength < 0) { in setFixedLengthStreamingMode()369 fixedContentLength = contentLength; in setFixedLengthStreamingMode()404 public void setFixedLengthStreamingMode(long contentLength) { in setFixedLengthStreamingMode() argument412 if (contentLength < 0) { in setFixedLengthStreamingMode()415 fixedContentLengthLong = contentLength; in setFixedLengthStreamingMode()
243 int contentLength = con.getContentLength(); in check() local244 if (contentLength == -1) { in check()245 contentLength = Integer.MAX_VALUE; in check()247 response = new byte[contentLength > 2048 ? 2048 : contentLength]; in check()249 while (total < contentLength) { in check()255 if (total >= response.length && total < contentLength) { in check()
42 private int contentLength = -1; field in URLConnection202 int l = contentLength; in getContentLength()217 contentLength = length; in setContentLength()
107 private int contentLength = -1; // 0xffffffff field in URLConnection