(String name)
| 158 | } |
| 159 | |
| 160 | private void nameValue (String name) { |
| 161 | if ((current & isObject) == 0) throw new IllegalStateException("Current item must be an object."); |
| 162 | if ((current & needsComma) != 0) |
| 163 | buffer.append(','); |
| 164 | else |
| 165 | current |= needsComma; |
| 166 | buffer.append(outputType.quoteName(name)); |
| 167 | buffer.append(':'); |
| 168 | } |
| 169 | |
| 170 | public JsonString object (String name) { |
| 171 | nameValue(name); |