Package de.coreengine.util
Class BufferUtils
- java.lang.Object
-
- de.coreengine.util.BufferUtils
-
public class BufferUtils extends Object
Buffer utilities- Author:
- Darius Dinger
-
-
Constructor Summary
Constructors Constructor Description BufferUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ByteBuffer
ioResourceToByteBuffer(String resource, int bufferSize)
Getting a resource as bytebuffer
-
-
-
Method Detail
-
ioResourceToByteBuffer
public static ByteBuffer ioResourceToByteBuffer(String resource, int bufferSize) throws IOException
Getting a resource as bytebuffer- Parameters:
resource
- Resource pathbufferSize
- Initial buffer size- Returns:
- Resource as ByteBuffer or null, if resource not found
- Throws:
IOException
- If an IO Error occurs
-
-