107108109110111112113114
* * @throws SwiftException if it is not */ private synchronized void verifyOpen() throws SwiftException { if (closed) { throw new SwiftException("Output stream is closed"); } }
279280281282283284285286287288289
if (httpStream != null) { int result; for (long i = 0; i < bytes; i++) { result = httpStream.read(); if (result < 0) { throw new SwiftException("Received error code while chomping input"); } count ++; incPos(1); } }