Package app.babylon.io
Class DataResourceProbe
java.lang.Object
app.babylon.io.DataResourceProbe
-
Method Summary
Modifier and TypeMethodDescriptionintgetCharset(Charset valueIfNull) booleanhasBom()booleanbooleanbooleanbooleanisPdf()booleanisXls()booleanisXlsx()booleanisZip()static DataResourceProbestatic DataResourceProbeof(DataResource ds) static DataResourceProbeof(BufferedInputStream bstream, String resourceName)
-
Method Details
-
of
-
of
public static DataResourceProbe of(BufferedInputStream bstream, String resourceName) throws IOException - Throws:
IOException
-
of
- Throws:
IOException
-
isXls
public boolean isXls() -
isZip
public boolean isZip() -
isXlsx
public boolean isXlsx() -
hasBom
public boolean hasBom() -
bomLengthBytes
public int bomLengthBytes() -
detectedCharset
-
getCharset
-
hasUtf8Bom
public boolean hasUtf8Bom() -
hasUtf16LeBom
public boolean hasUtf16LeBom() -
hasUtf16BeBom
public boolean hasUtf16BeBom() -
isPdf
public boolean isPdf()
-