Class AbstractNestedFlowReader

    • Constructor Detail

      • AbstractNestedFlowReader

        public AbstractNestedFlowReader()
    • Method Detail

      • readNested

        public List readNested​(File file)
        Reads the flow in nested format from the specified file.
        Specified by:
        readNested in interface NestedFlowReader
        Parameters:
        file - the file to read from
        Returns:
        null in case of an error, otherwise the flow
      • readNested

        public List readNested​(String filename)
        Reads the flow in nested format from the given file.
        Specified by:
        readNested in interface NestedFlowReader
        Parameters:
        filename - the file to read from
        Returns:
        the flow or null in case of an error
      • readNested

        public List readNested​(InputStream stream)
        Reads the flow in nested format from the stream. The caller must ensure to close the stream.
        Specified by:
        readNested in interface NestedFlowReader
        Parameters:
        stream - the stream to read from
        Returns:
        the flow or null in case of an error
      • readNested

        public List readNested​(Reader r)
        Reads the flow from the given reader. The caller must ensure to close the reader.
        Parameters:
        r - the reader to read from
        Returns:
        the flow or null in case of an error
      • doReadNested

        protected List doReadNested​(File file)
        Performs the actual reading.

        Default implementation returns null.
        Parameters:
        file - the file to read from
        Returns:
        the flow or null in case of an error
        See Also:
        AbstractFlowReader.getInputType()
      • doReadNested

        protected List doReadNested​(Reader r)
        Performs the actual reading.

        Default implementation returns null.
        Parameters:
        r - the reader to read from
        Returns:
        the flow or null in case of an error
        See Also:
        AbstractFlowReader.getInputType()
      • doReadNested

        protected List doReadNested​(InputStream in)
        Performs the actual reading.

        Default implementation returns null.
        Parameters:
        in - the input stream to read from
        Returns:
        the flow or null in case of an error
        See Also:
        AbstractFlowReader.getInputType()