cant resolve method getInputStream() : i am creating app in anroidstudio i implemeted a method but getting error: cant resolve method "getInputStream"

BufferedReader in = new BufferedReader( new 
    InputStreamReader(clienSocket.getInputStream()));

.getInputStream() method not resolving