How to distinguish between a named pipe and an ordinary file (for example a text file) in Java (under Windows as well as under Linux)?
In my case the user gives an input parameter (input filename/pipename from which I intend to read) and I should be able to distinguish whether the input parameter is a file or a named pipe.