Class AbstractTextReader<T>

    • Field Detail

      • m_Stream

        protected InputStream m_Stream
        the stream in use.
    • Constructor Detail

      • AbstractTextReader

        public AbstractTextReader()
    • Method Detail

      • getQuickInfo

        public String getQuickInfo()
        Returns a quick info about the actor, which will be displayed in the GUI.

        Default implementation returns null.
        Specified by:
        getQuickInfo in interface QuickInfoSupporter
        Returns:
        null if no info available, otherwise short string
      • generates

        public abstract Class generates()
        Returns the class of the data that it returns.
        Returns:
        the generated data type
      • initialize

        public void initialize​(InputStream stream)
        Initializes the input stream to read the content from.
        Parameters:
        stream - the input stream to use
      • hasNext

        public boolean hasNext()
        Returns whether more data is available.
        Returns:
        true if more data is available
      • doNext

        protected abstract T doNext()
        Returns the next lot of data.
        Returns:
        the next amount of data, null if failed to read
      • next

        public T next()
        Returns the next lot of data.
        Returns:
        the next amount of data, null if failed to read