/** * Sends the header of this message. */ public void sendHeader() throws IOException { if (this.socket != null) { synchronized (getCommBuffer()) { getDSCODEsForWrite(); flushBuffer(); // Darrel says: I see no need for the following os.flush() call // so I've deadcoded it for performance. // this.os.flush(); } this.currentPart = 0; this.headerSent = true; } else { throw new IOException("Dead Connection"); } }