Package javax.json.stream

Examples of javax.json.stream.JsonGenerator.writeEnd()


          eventWriter.write("term", defaultString(next.getTerm()));
          eventWriter.write("label", defaultString(next.getLabel()));
          eventWriter.write("scheme", defaultString(next.getScheme()));
          eventWriter.writeEnd();
        }
        eventWriter.writeEnd();
      }

      writeAuthor(nextEntry, eventWriter);

      IResource resource = nextEntry.getResource();
View Full Code Here


      IResource resource = nextEntry.getResource();
      RuntimeResourceDefinition resDef = myContext.getResourceDefinition(resource);
      encodeResourceToJsonStreamWriter(resDef, resource, eventWriter, "content");

      eventWriter.writeEnd(); // entry object
    }
    eventWriter.writeEnd(); // entry array

    eventWriter.writeEnd();
    eventWriter.close();
View Full Code Here

      RuntimeResourceDefinition resDef = myContext.getResourceDefinition(resource);
      encodeResourceToJsonStreamWriter(resDef, resource, eventWriter, "content");

      eventWriter.writeEnd(); // entry object
    }
    eventWriter.writeEnd(); // entry array

    eventWriter.writeEnd();
    eventWriter.close();
  }
View Full Code Here

      eventWriter.writeEnd(); // entry object
    }
    eventWriter.writeEnd(); // entry array

    eventWriter.writeEnd();
    eventWriter.close();
  }

  private void encodeChildElementToStreamWriter(RuntimeResourceDefinition theResDef, IResource theResource, JsonGenerator theWriter, IElement theValue, BaseRuntimeElementDefinition<?> theChildDef,
      String theChildName) throws IOException {
View Full Code Here

      }
      if (isNotBlank(next.getScheme())) {
        eventWriter.write(Tag.ATTR_SCHEME, next.getScheme());
      }

      eventWriter.writeEnd();
    }
    eventWriter.writeEnd();

    eventWriter.writeEnd();
    eventWriter.flush();
View Full Code Here

        eventWriter.write(Tag.ATTR_SCHEME, next.getScheme());
      }

      eventWriter.writeEnd();
    }
    eventWriter.writeEnd();

    eventWriter.writeEnd();
    eventWriter.flush();
  }
View Full Code Here

      eventWriter.writeEnd();
    }
    eventWriter.writeEnd();

    eventWriter.writeEnd();
    eventWriter.flush();
  }

  /**
   * This is useful only for the two cases where extensions are encoded as direct children (e.g. not in some object called _name): resource extensions, and extension extensions
View Full Code Here

    writeAtomLink(eventWriter, "first", theBundle.getLinkFirst());
    writeAtomLink(eventWriter, "previous", theBundle.getLinkPrevious());
    writeAtomLink(eventWriter, "next", theBundle.getLinkNext());
    writeAtomLink(eventWriter, "last", theBundle.getLinkLast());
    writeAtomLink(eventWriter, "fhir-base", theBundle.getLinkBase());
    eventWriter.writeEnd();

    writeOptionalTagWithTextNode(eventWriter, "totalResults", theBundle.getTotalResults());

    writeAuthor(theBundle, eventWriter);
View Full Code Here

      writeTagWithTextNode(eventWriter, "title", nextEntry.getTitle());
      writeTagWithTextNode(eventWriter, "id", nextEntry.getId());

      eventWriter.writeStartArray("link");
      writeAtomLink(eventWriter, "self", nextEntry.getLinkSelf());
      eventWriter.writeEnd();

      writeOptionalTagWithTextNode(eventWriter, "updated", nextEntry.getUpdated());
      writeOptionalTagWithTextNode(eventWriter, "published", nextEntry.getPublished());

      writeAuthor(nextEntry, eventWriter);
View Full Code Here

      IResource resource = nextEntry.getResource();
      RuntimeResourceDefinition resDef = myContext.getResourceDefinition(resource);
      encodeResourceToJsonStreamWriter(resDef, resource, eventWriter, "content");

      eventWriter.writeEnd(); // entry object
    }
    eventWriter.writeEnd(); // entry array

    eventWriter.writeEnd();
    eventWriter.close();
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.