Class SynchronizedSpotDataParser

    • Constructor Detail

      • SynchronizedSpotDataParser

        public SynchronizedSpotDataParser()
        Create a new synchronized data parser.
    • Method Detail

      • setMasterParser

        public void setMasterParser​(AnnotationParser parser)
        Sets the master parser. This parser should normally parse a reporter annotations file.
      • addDataParser

        public void addDataParser​(DataParser parser)
        Adds a data parser. The parser should parse a data file that has the same number of data lines as the master parser. Each line contains data identified by the corresponding reporter in the master parser file.
      • getFilename

        public String getFilename()
        Description copied from interface: BfsParser
        Get the filename of the file that is being parsed.
        Specified by:
        getFilename in interface BfsParser
        Returns:
        Always null, since we are parsing multiple files
      • getFileSize

        public long getFileSize()
        Description copied from interface: BfsParser
        Get the size of the file that is being parsed.
        Specified by:
        getFileSize in interface BfsParser
        Returns:
        The file size of the master parser
      • getCurrentLine

        public int getCurrentLine()
        Description copied from interface: BfsParser
        Get the current line number.
        Specified by:
        getCurrentLine in interface BfsParser
        Returns:
        The current line number in the file parsed by the master parser
      • getParsedBytes

        public long getParsedBytes()
        Description copied from interface: BfsParser
        Get the number of parsed bytes so far.
        Specified by:
        getParsedBytes in interface BfsParser
        Returns:
        The number of bytes parsed by the master parser
      • close

        public void close()
        Description copied from interface: BfsParser
        Close the parser and relase underlying system resources that are associated with it.
        Specified by:
        close in interface AutoCloseable
        Specified by:
        close in interface BfsParser