Description
Using the AutoDetectParser on an Excel 5 file inconsistently detects it as either "application/msword" or "application/vnd.ms-excel"
See the following code:
public static void main(String[] args) throws Exception {
FileInputStream stream = null;
try {
for (int i = 0; i < 10; i++)
} finally {
if (stream != null)
}
}
an example output is:
application/vnd.ms-excel
application/msword
application/msword
application/vnd.ms-excel
application/vnd.ms-excel
application/vnd.ms-excel
application/vnd.ms-excel
application/msword
application/vnd.ms-excel
application/msword
The excel 5 file I used is attached to this bug.