public void close() throws IOException { synchronized (mLock) {
public void close() { synchronized (mWriteLock) {
        public void close() throws IOException {            synchronized (mLock) {                mCloseAfterWrite = true;                if (!mWriteManager.isWritePending()) {                    closeChannel(CloseReason.NORMAL);                }            }        }