Class HashedFileExtractToString

  • All Implemented Interfaces:
    java.util.function.LongFunction<java.lang.String>

    public class HashedFileExtractToString
    extends java.lang.Object
    implements java.util.function.LongFunction<java.lang.String>
    Pseudo-randomly extract a section of a text file and return it according to some minimum and maximum extract size. The file is loaded into memory as a shared text image. It is then indexed into as a character buffer to find a pseudo-randomly sized fragment.
    • Constructor Summary

      Constructors 
      Constructor Description
      HashedFileExtractToString​(java.lang.String fileName, int minsize, int maxsize)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String apply​(long input)  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

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

      • HashedFileExtractToString

        public HashedFileExtractToString​(java.lang.String fileName,
                                         int minsize,
                                         int maxsize)
    • Method Detail

      • apply

        public java.lang.String apply​(long input)
        Specified by:
        apply in interface java.util.function.LongFunction<java.lang.String>
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object