The design depends on many parameters, such as, who is going to use this method. Is it going to be overloaded, is it internal, package level or public API. I would tend to be general and offer two overloaded methods:
- one which passes in the
Path
which is a common way of specifying the path to a file
and one which passes in the InputStream
, i.e. general representation of input stream of bytes
public void normalizeData(Path filePath) //Path is a common way for specifying file path
public void normalizeData(InputStream) //general representation of input stream of bytes
But as I said, it depends on your project specification.