Difference between socket.shutdownOutput() and outputStream.close()

I’m using a socket created with

Socket socket = new Socket("127.0.0.1", port);

and make use of the output stream (and input stream)

OutputStream outputStream = socket.getOutputStream();
...

Now what is the difference between invoking

outputStream.close();

and

socket.shutdownOutput();