@Override public int available() throws IOException { try { return stream.available(); } catch (IOException e) { closeStream(); throw e; } catch (RuntimeException e) { closeStream(); throw e; } }
@Override public void reset() throws IOException { try { stream.reset(); } catch (IOException e) { closeStream(); throw e; } catch (RuntimeException e) { closeStream(); throw e; } }
@Override public int available() throws IOException { try { return stream.available(); } catch (IOException e) { closeStream(); throw e; } catch (RuntimeException e) { closeStream(); throw e; } }
@Override public void reset() throws IOException { try { stream.reset(); } catch (IOException e) { closeStream(); throw e; } catch (RuntimeException e) { closeStream(); throw e; } }
@Override public long skip( long n ) throws IOException { try { return stream.skip(n); } catch (IOException e) { closeStream(); throw e; } catch (RuntimeException e) { closeStream(); throw e; } }
@Override public void reset() throws IOException { try { stream.reset(); } catch (IOException e) { closeStream(); throw e; } catch (RuntimeException e) { closeStream(); throw e; } }
@Override public long skip( long n ) throws IOException { try { return stream.skip(n); } catch (IOException e) { closeStream(); throw e; } catch (RuntimeException e) { closeStream(); throw e; } }
@Override public int available() throws IOException { try { return stream.available(); } catch (IOException e) { closeStream(); throw e; } catch (RuntimeException e) { closeStream(); throw e; } }
@Override public long skip( long n ) throws IOException { try { return stream.skip(n); } catch (IOException e) { closeStream(); throw e; } catch (RuntimeException e) { closeStream(); throw e; } }
@Override public int read( byte[] b ) throws IOException { try { int result = stream.read(b); if (result == -1) { // the end of the stream has been reached ... closeStream(); } return result; } catch (IOException e) { closeStream(); throw e; } catch (RuntimeException e) { closeStream(); throw e; } }
@Override public boolean markSupported() { try { return stream.markSupported(); } catch (RuntimeException e) { closeStream(); throw e; } }
@Override public void mark( int readlimit ) { try { stream.mark(readlimit); } catch (RuntimeException e) { closeStream(); throw e; } }
@Override public void mark( int readlimit ) { try { stream.mark(readlimit); } catch (RuntimeException e) { closeStream(); throw e; } }
@Override public int read( byte[] b ) throws IOException { try { int result = stream.read(b); if (result == -1) { // the end of the stream has been reached ... closeStream(); } return result; } catch (IOException e) { closeStream(); throw e; } catch (RuntimeException e) { closeStream(); throw e; } }
@Override public void mark( int readlimit ) { try { stream.mark(readlimit); } catch (RuntimeException e) { closeStream(); throw e; } }
@Override public boolean markSupported() { try { return stream.markSupported(); } catch (RuntimeException e) { closeStream(); throw e; } }
@Override public boolean markSupported() { try { return stream.markSupported(); } catch (RuntimeException e) { closeStream(); throw e; } }
@Override public int read() throws IOException { try { int result = stream.read(); if (result == -1) { // the end of the stream has been reached ... closeStream(); } return result; } catch (IOException e) { closeStream(); throw e; } catch (RuntimeException e) { closeStream(); throw e; } }
@Override public int read() throws IOException { try { int result = stream.read(); if (result == -1) { // the end of the stream has been reached ... closeStream(); } return result; } catch (IOException e) { closeStream(); throw e; } catch (RuntimeException e) { closeStream(); throw e; } }
@Override public int read() throws IOException { try { int result = stream.read(); if (result == -1) { // the end of the stream has been reached ... closeStream(); } return result; } catch (IOException e) { closeStream(); throw e; } catch (RuntimeException e) { closeStream(); throw e; } }