Class Utils
java.lang.Object
org.glassfish.jersey.jdk.connector.internal.Utils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) static ByteBuffer
appendBuffers
(ByteBuffer buffer, ByteBuffer buffer1, int incomingBufferSize, int BUFFER_STEP_SIZE) Concatenates two buffers into one.(package private) static int
(package private) static ByteBuffer
split
(ByteBuffer buffer, int position)
-
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
-
getPort
-