if (LOG.isLoggable(Level.FINE)) {
LOG.fine("[" + getId() + "] writing part " + part);
}
IWriteCompletionHandler ch = new IWriteCompletionHandler() {
@Execution(Execution.NONTHREADED)
public void onWritten(int written) throws IOException {
IBodyCompleteListener cl = new IBodyCompleteListener() {
public void onComplete() throws IOException {
if (successor == null) {
if (LOG.isLoggable(Level.FINE)) {
LOG.fine("[" + getId() + "] writing close delimiter");
}
IWriteCompletionHandler ch2 = new IWriteCompletionHandler() {
@Execution(Execution.NONTHREADED)
public void onWritten(int written) throws IOException {
dataSink.closeQuitly();
MultipartDataSource.this.closeQuitly();