@DischargesObligation @Override public void close() throws IOException { in.close(); }
/** * Finish writing XML output, closing any underlying resources (such as * output streams). A call to this method should always be made, even if one * of the XML-generation methods throws an exception. Therefore, a call to * this method should be performed in a finally block. */ @DischargesObligation public void finish() throws IOException; }
public static @DischargesObligation void done() { }
public @DischargesObligation void done() { }
@Override @DischargesObligation public void finish() throws IOException { out.close(); }
/** * Finish writing XML output, closing any underlying resources (such as * output streams). A call to this method should always be made, even if one * of the XML-generation methods throws an exception. Therefore, a call to * this method should be performed in a finally block. */ @DischargesObligation public void finish() throws IOException; }
/** * Closes this stream. * It is an error to call any other method on this stream once this method * has terminated without an exception and the result of any violation is * undefined. * However, implementations are encouraged to throw an exception from any * other method to indicate this error condition. */ @Override @DischargesObligation void close() throws Exception; }
/** * Releases a previously allocated resource to this pool. * * @param resource a resource. * @throws IllegalArgumentException if the given resource has not been * allocated by this pool and the implementation cannot tolerate * this. * @throws X if releasing the resource fails for any other reason. */ @DischargesObligation void release(R resource) throws X; }
@Override @DischargesObligation public void close() throws IOException { super.close(); } }
@Override @DischargesObligation public void close() throws IOException { super.close(); } }
@Override @GuardedBy("lock") @DischargesObligation public void close() throws IOException { lock.lock(); try { in.close(); } finally { lock.unlock(); } } }
/** * Closes the decorated read only file if and only if it is exclusively * accessed by this decorating read only file. * * @throws IOException On any I/O error. */ @Override @DischargesObligation public void close() throws IOException { if (exclusive) channel.close(); } }
@Override @DischargesObligation public void close() throws IOException { super.close(); inf.end(); }
@Override @DischargesObligation public void close() throws IOException { if (closed) return; closed = true; closeEntry(); } } // EntryOutputStream
@Override @DischargesObligation public void close() throws IOException { channel.close(); }
/** * Closes this update resolver. * This method is idempotent. */ @DischargesObligation final void close() { for (final Iterator<FileAccount> it = accounts.values().iterator(); it.hasNext(); ) { deleteResolvedFile(it.next()); it.remove(); } }
@Override @GuardedBy("lock") @DischargesObligation public void close() throws IOException { lock.lock(); try { channel.close(); } finally { lock.unlock(); } } }
@Override @DischargesObligation public void close() throws IOException { if (closed) return; closed = true; bufferedEntry = null; delegate.close(); updateProperties(); storeBuffer(); }
@Override @DischargesObligation public void close() throws IOException { if (isBusy()) throw new IOException("This multiplexing output service is still busy with writing a stream!"); storeBuffers(); assert buffers.isEmpty(); container.close(); }
/** * Pops the {@link #get() current configuration} off the inheritable thread * local configuration stack. * * @throws IllegalStateException If the {@link #get() current configuration} * is the global configuration. */ @DischargesObligation public static void pop() { configs.popIf(get()); }