code: public static final IDataSegment create (final ByteBuffer buffer, final DataSegmentFormat format, final int maxChunkSize) {
  
          return create(buffer, buffer.position(), buffer.remaining(), format, maxChunkSize);
      }
docs: Creates a data segment of the given format and with the given chunk size (in bytes). This data segment is
  initialized with the data of <code>buffer</code>.
  
  @param buffer The initialization buffer.
  @param format A format from the <code>DataSegmentFormat</code> enumeration.
  @param maxChunkSize The size (in bytes) of one chunk, which represents the <code>MaxRecvDataSegmentLength</code>
  .
  @return The instance of an <codE>DataSegment</code> object.