MCPcopy Index your code
hub / github.com/google/gson / beginArray

Method beginArray

src/main/java/com/google/gson/stream/JsonWriter.java:226–228  ·  view source on GitHub ↗

Begins encoding a new array. Each call to this method must be paired with a call to #endArray. @return this writer.

()

Source from the content-addressed store, hash-verified

224 * @return this writer.
225 */
226 public JsonWriter beginArray() throws IOException {
227 return open(JsonScope.EMPTY_ARRAY, "[");
228 }
229
230 /**
231 * Ends encoding the current array.

Callers 15

testWriteClosedMethod · 0.95
testBadNestingObjectMethod · 0.95
testBadNestingArrayMethod · 0.95
testNonFiniteDoublesMethod · 0.95
testDoublesMethod · 0.95
testLongsMethod · 0.95
testNumbersMethod · 0.95
testBooleansMethod · 0.95

Calls 1

openMethod · 0.95

Tested by 15

testWriteClosedMethod · 0.76
testBadNestingObjectMethod · 0.76
testBadNestingArrayMethod · 0.76
testNonFiniteDoublesMethod · 0.76
testDoublesMethod · 0.76
testLongsMethod · 0.76
testNumbersMethod · 0.76
testBooleansMethod · 0.76