Examples of startEntry()


Examples of java.lang.ClassValue.ClassValueMap.startEntry()

     */
    private T getFromHashMap(Class<?> type) {
        // The fail-safe recovery is to fall back to the underlying classValueMap.
        ClassValueMap map = getMap(type);
        for (;;) {
            Entry<T> e = map.startEntry(this);
            if (!e.isPromise())
                return e.value();
            try {
                // Try to make a real entry for the promised version.
                e = makeEntry(e.version(), computeValue(type));
View Full Code Here

Examples of java.lang.ClassValue.ClassValueMap.startEntry()

     */
    private T getFromHashMap(Class<?> type) {
        // The fail-safe recovery is to fall back to the underlying classValueMap.
        ClassValueMap map = getMap(type);
        for (;;) {
            Entry<T> e = map.startEntry(this);
            if (!e.isPromise())
                return e.value();
            try {
                // Try to make a real entry for the promised version.
                e = makeEntry(e.version(), computeValue(type));
View Full Code Here

Examples of org.apache.abdera.factory.StreamBuilder.startEntry()

            .writeUpdated(new Date()).writeLink("http://example.org/foo").writeLink("http://example.org/bar", "self")
            .writeCategory("foo").writeCategory("bar").writeLogo("logo").writeIcon("icon")
            .writeGenerator("1.0", "http://example.org", "foo");

        for (int n = 0; n < 100; n++) {
            out.startEntry().writeId("http://example.org/" + n).writeTitle("Entry #" + n).writeUpdated(new Date())
                .writePublished(new Date()).writeEdited(new Date()).writeSummary("This is text summary")
                .writeAuthor("James", null, null).writeContributor("Joe", null, null).startContent("application/xml")
                .startElement("a", "b", "c").startElement("x", "y", "z").writeElementText("This is a test")
                .startElement("a").writeElementText("foo").endElement().startElement("b", "bar")
                .writeAttribute("foo", new Date()).writeAttribute("bar", 123L).writeElementText(123.123).endElement()
View Full Code Here

Examples of org.apache.abdera.factory.StreamBuilder.startEntry()

           .writeLogo("logo")
           .writeIcon("icon")
           .writeGenerator("1.0", "http://example.org", "foo");
     
    for (int n = 0; n < 100; n++) {
      out.startEntry()     
        .writeId("http://example.org/" + n)
        .writeTitle("Entry #" + n)
        .writeUpdated(new Date())
        .writePublished(new Date())
        .writeEdited(new Date())
View Full Code Here

Examples of org.apache.abdera.writer.StreamWriter.startEntry()

                .writeCategory("bar").writeLogo("logo").writeIcon("icon").writeGenerator("1.0",
                                                                                         "http://example.org",
                                                                                         "foo").flush();

        for (int n = 0; n < 100; n++) {
            out.startEntry().writeId("http://example.org/" + n).writeTitle("Entry #" + n).writeUpdated(new Date())
                .writePublished(new Date()).writeEdited(new Date()).writeSummary("This is text summary")
                .writeAuthor("James", null, null).writeContributor("Joe", null, null).startContent("application/xml")
                .startElement("a", "b", "c").startElement("x", "y", "z").writeElementText("This is a test")
                .startElement("a").writeElementText("foo").endElement().startElement("b", "bar")
                .writeAttribute("foo", new Date()).writeAttribute("bar", 123L).writeElementText(123.123).endElement()
View Full Code Here

Examples of org.apache.abdera.writer.StreamWriter.startEntry()

                try {
                    StringWriter stringWriter = new StringWriter();
                    StreamWriter writer = Abdera.getInstance()
                            .getWriterFactory().newStreamWriter();
                    writer.setWriter(stringWriter);
                    writer.startEntry();
                    writer.writeId(entry.getId());
                    writer.writeUpdated(entry.getUpdated());
                    writer.writePublished(entry.getPublished());
                    if (predecessor != null) {
                        writer.startElement(Common.PREDECESSOR, Common.NS_URI);
View Full Code Here

Examples of org.apache.abdera.writer.StreamWriter.startEntry()

            .writeIcon("icon")
            .writeGenerator("1.0", "http://example.org", "foo")
            .flush();
     
    for (int n = 0; n < 100; n++) {
      out.startEntry()     
        .writeId("http://example.org/" + n)
        .writeTitle("Entry #" + n)
        .writeUpdated(new Date())
        .writePublished(new Date())
        .writeEdited(new Date())
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.