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