One fairly simple implementation:

PrintWriter getWriter() throws java.io.IOException {
return new PrintWriter(socket.getOutputStream());
}