コード例 #1
0
ファイル: JSONWriter.java プロジェクト: nisang/haoxuan-dubbox
  /**
   * object begin.
   *
   * @return this.
   * @throws IOException.
   */
  public JSONWriter objectBegin() throws IOException {
    beforeValue();

    mWriter.write(JSON.LBRACE);
    mStack.push(mState);
    mState = new State(OBJECT);
    return this;
  }
コード例 #2
0
ファイル: JSONWriter.java プロジェクト: nisang/haoxuan-dubbox
  /**
   * array begin.
   *
   * @return this.
   * @throws IOException.
   */
  public JSONWriter arrayBegin() throws IOException {
    beforeValue();

    mWriter.write(JSON.LSQUARE);
    mStack.push(mState);
    mState = new State(ARRAY);
    return this;
  }
コード例 #3
0
ファイル: JSONWriter.java プロジェクト: nisang/haoxuan-dubbox
 /**
  * object end.
  *
  * @return this.
  * @throws IOException.
  */
 public JSONWriter objectEnd() throws IOException {
   mWriter.write(JSON.RBRACE);
   mState = mStack.pop();
   return this;
 }
コード例 #4
0
ファイル: JSONWriter.java プロジェクト: nisang/haoxuan-dubbox
 /**
  * array end, return array value.
  *
  * @return this.
  * @throws IOException.
  */
 public JSONWriter arrayEnd() throws IOException {
   mWriter.write(JSON.RSQUARE);
   mState = mStack.pop();
   return this;
 }