Class FileHead

java.lang.Object
ai.redouble.demo.extract.FileHead

public class FileHead extends Object
What the classifier sees of a file nothing else could place: its name, its size and its first bytes decoded as text, with undecodable bytes shown as the replacement character. Enough to tell text under a strange extension from a binary.
Since:
0.1 (2026-09-14)
Author:
Andrey Santrosyan
  • Constructor Details

    • FileHead

      public FileHead()
  • Method Details

    • getName

      public String getName()
    • setName

      public void setName(String name)
    • getSizeBytes

      public long getSizeBytes()
    • setSizeBytes

      public void setSizeBytes(long sizeBytes)
    • getHead

      public String getHead()
    • setHead

      public void setHead(String head)
    • getUndecodable

      public int getUndecodable()
    • setUndecodable

      public void setUndecodable(int undecodable)
    • getSampled

      public int getSampled()
    • setSampled

      public void setSampled(int sampled)