Returns the string representation of this media type in the format described in RFC 2045 .
()
| 1046 | |
| 1047 | |
| 1048 | @Override |
| 1049 | public String toString() { |
| 1050 | // racy single-check idiom, safe because String is immutable |
| 1051 | String result = toString; |
| 1052 | if (result == null) { |
| 1053 | result = computeToString(); |
| 1054 | toString = result; |
| 1055 | } |
| 1056 | return result; |
| 1057 | } |
| 1058 | |
| 1059 | private String computeToString() { |
| 1060 | StringBuilder builder = new StringBuilder().append(type).append('/').append(subtype); |
nothing calls this directly
no test coverage detected