detect type of argument passed to parser's constructor (supposed to be
File or array of bytes)