detect

Detects the type of the executable file from the provided File.

Return

the detected ExecutableFileType, or null if the type could not be detected

Parameters

file

the file to read the file header.

See also

Throws

if an I/O error occurs

if the path is invalid


Detects the type of the executable file from the provided Path.

Return

the detected ExecutableFileType, or null if the type could not be detected

Parameters

path

the path to read the file header.

See also

Throws

if an I/O error occurs