java.lang.Object
org.glassfish.jersey.jdk.connector.internal.Utils

public class Utils extends Object
  • Constructor Details

    • Utils

      public Utils()
  • Method Details

    • appendBuffers

      static ByteBuffer appendBuffers(ByteBuffer buffer, ByteBuffer buffer1, int incomingBufferSize, int BUFFER_STEP_SIZE)
      Concatenates two buffers into one. If buffer given as first argument has enough space for putting the other one, it will be done and the original buffer will be returned. Otherwise new buffer will be created.
      Parameters:
      buffer - first buffer.
      buffer1 - second buffer.
      Returns:
      concatenation.
    • split

      static ByteBuffer split(ByteBuffer buffer, int position)
    • getPort

      static int getPort(URI uri)