code: public synchronized void setReadOnly()
     {
        if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "setReadOnly");
  
        // And actually mark the real buffers as read-only too
        for (int x = 0; x < dataList.size(); x++)
        {
           WsByteBuffer buff = dataList.get(x);
           buff.setReadOnly(true);
        }
  
        if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.exit(this, tc, "setReadOnly");
     }
docs: This method sets all the byte buffers that we have in the list as read only.