Return the content length. @return the content length
()
| 662 | * @return the content length |
| 663 | */ |
| 664 | public int getContentLength() { |
| 665 | long length = getContentLengthLong(); |
| 666 | |
| 667 | if (length < Integer.MAX_VALUE) { |
| 668 | return (int) length; |
| 669 | } |
| 670 | return -1; |
| 671 | } |
| 672 | |
| 673 | /** |
| 674 | * Return the content length as a long. |
nothing calls this directly
no test coverage detected