@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; }
/** * Will unregister this log handler. */ @DischargesObligation void close(); }
/** * Finishes writing the initialized ZIP entry. * * @throws IOException on any I/O error. */ @DischargesObligation void finish() throws IOException; }
/** * Releases this resource to its pool. * * @throws X if releasing the resource fails for any reason. */ @DischargesObligation void release() throws X; }
@Override @DischargesObligation public void close() { closed = true; } }
@Override @DischargesObligation public void close() throws IOException { super.close(); } }
@Override @DischargesObligation public void close() throws IOException { super.close(); } }
@Override @DischargesObligation public void close() throws IOException { in.close(); }
@Override @DischargesObligation public void close() throws IOException { out.close(); }
@Override @DischargesObligation public void finish() throws IOException { out.close(); }
@Override @DischargesObligation public void close() throws IOException { channel.close(); } }
@Override @DischargesObligation public void close() throws IOException { if (overflowWriter != null) { overflowWriter.close(); } else if (asideBuffer != null) { destination.append(asideBuffer); } }
@Override @GuardedBy("lock") @DischargesObligation public void close() throws IOException { lock.lock(); try { in.close(); } finally { lock.unlock(); } } }