Class AbstractStreamingParser

    • Constructor Detail

      • AbstractStreamingParser

        public AbstractStreamingParser​(CSVReaderFormat format)
        Constructor.
        Parameters:
        format - Reader format
    • Method Detail

      • parse

        public final MultipleObjectsBundle parse​(java.io.InputStream in)
        Description copied from interface: Parser
        Returns a list of the objects parsed from the specified input stream.
        Specified by:
        parse in interface Parser
        Parameters:
        in - the stream to parse objects from
        Returns:
        a list containing those objects parsed from the input stream
      • initStream

        public void initStream​(java.io.InputStream in)
        Description copied from interface: StreamingParser
        Init the streaming parser for the given input stream.
        Specified by:
        initStream in interface StreamingParser
        Parameters:
        in - the stream to parse objects from
      • hasDBIDs

        public boolean hasDBIDs()
        Description copied from interface: BundleStreamSource
        Indicate whether the stream contains DBIDs.
        Specified by:
        hasDBIDs in interface BundleStreamSource
        Returns:
        true if the stream contains DBIDs.
      • assignDBID

        public boolean assignDBID​(DBIDVar var)
        Description copied from interface: BundleStreamSource
        Assign the current object ID to a DBIDVar.
        Specified by:
        assignDBID in interface BundleStreamSource
        Parameters:
        var - Variable to assign the object id to
        Returns:
        false when no object id is available
      • cleanup

        public void cleanup()
        Description copied from interface: Parser
        Perform cleanup operations after parsing.
        Specified by:
        cleanup in interface Parser
      • getLogger

        protected abstract Logging getLogger()
        Get the logger for this class.
        Returns:
        Logger.