@Override
            public int read() throws IOException {
                throw new SocketTimeoutException("socket timeout");
            }
This throws a socket timeout exception immediately. When creating an XML event reader,
it may read ahead a few bytes so we have to handle the {@link javax.xml.stream.XMLStreamException} in
two places.
aws-java-sdk-core/src/test/java/com/amazonaws/http/StaxResponseHandlerForBlobDataTest.java