Class IOUtil
This class was adapted from
Inheritance
java.lang.Object
IOUtil
Syntax
public class IOUtil
Methods
ioResourceToByteBuffer(String resource, int bufferSize)
Reads the specified resource and returns the raw data as a ByteBuffer.
Declaration
public static ByteBuffer ioResourceToByteBuffer(String resource, int bufferSize)
Parameters
Type | Name | Description |
---|---|---|
String | resource | the resource to read |
int | bufferSize | the initial buffer size |
Returns
Type | Description |
---|---|
ByteBuffer | the resource data |
Exceptions
Type | Condition |
---|---|
IOException | if an IO error occurs |