Class AbstractStrictCheckSizeFileCompleteCheck

    • Field Detail

      • m_CheckSize

        protected int m_CheckSize
        the number of bytes to read from the end of the file to look for the EOF marker.
    • Constructor Detail

      • AbstractStrictCheckSizeFileCompleteCheck

        public AbstractStrictCheckSizeFileCompleteCheck()
    • Method Detail

      • strictTipText

        public String strictTipText()
        Returns the tip text for this property.
        Specified by:
        strictTipText in class AbstractStrictFileCompleteCheck
        Returns:
        tip text for this property suitable for displaying in the GUI or for listing the options.
      • getDefaultCheckSize

        protected int getDefaultCheckSize()
        Returns the default check size to use.
        Returns:
        the default
      • getMinCheckSize

        protected abstract int getMinCheckSize()
        Returns the minimally allowed check size.
        Returns:
        the minimum
      • setCheckSize

        public void setCheckSize​(int value)
        Sets the number of bytes to read from the back of the file (in non-strict mode) to check for EOF marker.
        Parameters:
        value - the number of bytes
      • getCheckSize

        public int getCheckSize()
        Returns the number of bytes to read from the back of the file (in non-strict mode) to check for EOF marker.
        Returns:
        the number of bytes
      • checkSizeTipText

        public String checkSizeTipText()
        Returns the tip text for this property.
        Returns:
        tip text for this property suitable for displaying in the GUI or for listing the options.
      • isCompleteEOF

        protected boolean isCompleteEOF​(File file,
                                        int bufLen)
        Checks whether the file is complete using the number of bytes from the end of the file.
        Parameters:
        file - the file to check
        bufLen - the buffer length to use
        Returns:
        true if complete