detect()
Detect the format of a given document stream.
strm – document stream to detect the format of.