Coincidentally I just came from another topic that contained a similar ambiguity about the
word "only":
A JAR file can contain classes from only a single package
(From the
SCJP 6 prep book. The book claimed this was a wrong statement. But of course a JAR file
can contain classes from only a single package.)
In this case:
you can only call either response.getOutputStream (binary output stream) or response.getWriter (text output stream) on a response object.
Example of the ambiguity:
You can only get into the house either through the back door, or through the basement window.
My two burgler friends are happy to discover that entry by the back door does not preclude entry also through the basement window.
Unambiguous to say, perhaps, that you can only call
one of either .getOutputStream or .getWriter.