Class AbstractNestedFlowWriter

    • Constructor Detail

      • AbstractNestedFlowWriter

        public AbstractNestedFlowWriter()
    • Method Detail

      • write

        public boolean write​(List content,
                             File file)
        Writes the given nested format to the specified file.
        Specified by:
        write in interface NestedFlowWriter
        Parameters:
        content - the content to write
        file - the file to write to
        Returns:
        true if successfully written
      • write

        public boolean write​(List content,
                             String filename)
        Writes the nested format to the given file.
        Specified by:
        write in interface NestedFlowWriter
        Parameters:
        content - the content to write
        filename - the file to write the content to
        Returns:
        true if successfully written
      • write

        public boolean write​(List content,
                             OutputStream stream)
        Writes the nested format to the given output stream. The caller must ensure that the stream gets closed.
        Specified by:
        write in interface NestedFlowWriter
        Parameters:
        content - the content to write
        stream - the output stream to write the content to
        Returns:
        true if successfully written
      • write

        public boolean write​(List content,
                             Writer writer)
        Writes the nested format to the given writer. The caller must ensure that the writer gets closed.
        Parameters:
        content - the content to write
        writer - the writer to write the content to
        Returns:
        true if successfully written
      • doWrite

        protected boolean doWrite​(List content,
                                  File file)
        Performs the actual writing. The caller must ensure that the writer gets closed.

        Default implementation returns always false.
        Parameters:
        content - the content to write
        file - the file to write the content to
        Returns:
        true if successfully written
      • doWrite

        protected boolean doWrite​(List content,
                                  Writer writer)
        Performs the actual writing. The caller must ensure that the writer gets closed.

        Default implementation returns always false.
        Parameters:
        content - the content to write
        writer - the writer to write the content to
        Returns:
        true if successfully written
      • doWrite

        protected boolean doWrite​(List content,
                                  OutputStream out)
        Performs the actual writing. The caller must ensure that the output stream gets closed.

        Default implementation returns always false.
        Parameters:
        content - the content to write
        out - the output stream to write the content to
        Returns:
        true if successfully written