Class FileHead
java.lang.Object
ai.redouble.demo.extract.FileHead
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetHead()getName()intlongintvoidvoidvoidsetSampled(int sampled) voidsetSizeBytes(long sizeBytes) voidsetUndecodable(int undecodable)
-
Constructor Details
-
FileHead
public FileHead()
-
-
Method Details
-
getName
-
setName
-
getSizeBytes
public long getSizeBytes() -
setSizeBytes
public void setSizeBytes(long sizeBytes) -
getHead
-
setHead
-
getUndecodable
public int getUndecodable() -
setUndecodable
public void setUndecodable(int undecodable) -
getSampled
public int getSampled() -
setSampled
public void setSampled(int sampled)
-