Class SizeGreaterThan

  • All Implemented Interfaces:
    java.io.FileFilter

    public class SizeGreaterThan
    extends java.lang.Object
    FileFilter accepts files based on whether the size of the file is greater than the specified value.
    • Constructor Summary

      Constructors 
      Constructor Description
      SizeGreaterThan​(long fileSize)
      Create the filefilter using the specified size.
      SizeGreaterThan​(java.lang.String size)
      Create the filefilter using the specified size.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean accept​(java.io.File pathname)  
      protected long getFilesize()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SizeGreaterThan

        public SizeGreaterThan​(java.lang.String size)
        Create the filefilter using the specified size.
        Parameters:
        size - the size of the file in bytes.
      • SizeGreaterThan

        public SizeGreaterThan​(long fileSize)
        Create the filefilter using the specified size.
        Parameters:
        fileSize - the size of the file in bytes.
    • Method Detail

      • accept

        public boolean accept​(java.io.File pathname)
        See Also:
        FileFilter.accept(java.io.File)
      • getFilesize

        protected long getFilesize()