Package net.officefloor.server.stream
Class BufferJvmFix
- java.lang.Object
-
- net.officefloor.server.stream.BufferJvmFix
-
public class BufferJvmFix extends java.lang.Object
Fix for compatibility issue between JDK8 and JDK9.- Author:
- Daniel Sagenschneider
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.nio.Buffer
clear(java.nio.Buffer buffer)
Handle difference in clear.static java.nio.Buffer
flip(java.nio.Buffer buffer)
Handles difference in flip.static int
limit(java.nio.Buffer buffer)
Handle difference in limit.static java.nio.Buffer
limit(java.nio.Buffer buffer, int limit)
Handle difference in limit.static int
position(java.nio.Buffer buffer)
Handle difference in position.static java.nio.Buffer
position(java.nio.Buffer buffer, int position)
Handles difference in position.
-
-
-
Method Detail
-
flip
public static java.nio.Buffer flip(java.nio.Buffer buffer)
Handles difference in flip.- Parameters:
buffer
-ByteBuffer
.- Returns:
- Result of flip.
-
clear
public static java.nio.Buffer clear(java.nio.Buffer buffer)
Handle difference in clear.- Parameters:
buffer
-ByteBuffer
.- Returns:
- Result of clear.
-
position
public static int position(java.nio.Buffer buffer)
Handle difference in position.- Parameters:
buffer
-ByteBuffer
.- Returns:
- Position.
-
position
public static java.nio.Buffer position(java.nio.Buffer buffer, int position)
Handles difference in position.- Parameters:
buffer
-ByteBuffer
.position
- Position.- Returns:
- Result of position.
-
limit
public static int limit(java.nio.Buffer buffer)
Handle difference in limit.- Parameters:
buffer
-ByteBuffer
.- Returns:
- Limit.
-
limit
public static java.nio.Buffer limit(java.nio.Buffer buffer, int limit)
Handle difference in limit.- Parameters:
buffer
-ByteBuffer
.limit
- Limit.- Returns:
- Result of limit.
-
-