static void closeQuietly(Closeable is) { closeQuietly(is, null); } /**
@Override public final void release() { // Don't call IOUtils.release(in, null) or else could lead to infinite loop SdkIOUtils.closeQuietly(this); if (in instanceof Releasable) { // This allows any underlying stream that has the close operation // disabled to be truly released Releasable r = (Releasable)in; r.release(); } } }
@Override public void release() { // Don't call IOUtils.release(in, null) or else could lead to infinite loop SdkIOUtils.closeQuietly(this); if (in instanceof Releasable) { // This allows any underlying stream that has the close operation // disabled to be truly released Releasable r = (Releasable)in; r.release(); } } }
static void closeQuietly(Closeable is) { closeQuietly(is, null); } /**
@Override public final void release() { // Don't call IOUtils.release(in, null) or else could lead to infinite loop SdkIOUtils.closeQuietly(this); if (in instanceof Releasable) { // This allows any underlying stream that has the close operation // disabled to be truly released Releasable r = (Releasable)in; r.release(); } } }
@Override public void release() { // Don't call IOUtils.release(in, null) or else could lead to infinite loop SdkIOUtils.closeQuietly(this); if (in instanceof Releasable) { // This allows any underlying stream that has the close operation // disabled to be truly released Releasable r = (Releasable)in; r.release(); } } }
static void closeQuietly(Closeable is) { closeQuietly(is, null); } /**
@Override public void release() { // Don't call IOUtils.release(in, null) or else could lead to infinite loop SdkIOUtils.closeQuietly(this); if (in instanceof Releasable) { // This allows any underlying stream that has the close operation // disabled to be truly released Releasable r = (Releasable)in; r.release(); } } }
@Override public final void release() { // Don't call IOUtils.release(in, null) or else could lead to infinite loop SdkIOUtils.closeQuietly(this); if (in instanceof Releasable) { // This allows any underlying stream that has the close operation // disabled to be truly released Releasable r = (Releasable)in; r.release(); } } }