Class StreamBuilder

  • All Implemented Interfaces:
    Closeable, Appendable, AutoCloseable, NamedItem, StreamWriter

    public class StreamBuilder
    extends AbstractStreamWriter
    This API is deprecated as Apache Abdera is a retired project since 2017.
    StreamBuilder is a special implementation of the StreamWriter interface that can be used to create Feed Object Model instances using the StreamWriter interface. StreamBuilder provides an additional method (getBase) for returning the FOM Base element that was built. The StreamWriter methods indent(), flush(), close(), setWriter(), setInputStream, setAutoclose(), setAutoflush(), setAutoIndent(), and setChannel() have no effect on this StreamWriter implementation
      StreamBuilder sw = new StreamBuilder();
      Entry entry =
              .writeId("").writeTitle("testing").writeUpdated(new Date()).endElement().getBase();