| java.lang.Object | |
| ↳ | com.atlassian.bitbucket.rest.util.StatefulJsonWriter |
| Nested Classes | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| StatefulJsonWriter.WritingContext | |||||||||||
| StatefulJsonWriter.WritingState | |||||||||||
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Closes all JSON elements up until (but not including) the outer-most object.
| |||||||||||
Creates a new writer which transforms all calls to
value(Object) only (at the moment). | |||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
java.io.Closeable
| |||||||||||
From interface
java.lang.AutoCloseable
| |||||||||||
| IOException |
|---|
Closes all JSON elements up until (but not including) the outer-most object.
When this is used on a JSON stream which has only written an array as a top level value, the array is closed.
When this is used on a JSON stream which has only written a primitive as a top level value, nothing is done.
When this is used on a JSON stream which has not yet written anything, nothing is done.
| IOException | if the method encountered an IO exception while writing to the underlying stream |
|---|
| IOException |
|---|
Creates a new writer which transforms all calls to value(Object) only (at the moment).