Package com.gdflab.gdfsr.utils
Class GDFUtils
- java.lang.Object
-
- com.gdflab.gdfsr.utils.GDFUtils
-
public class GDFUtils extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description GDFUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static byte[]
fileToByteArray(java.io.File file)
static java.nio.ByteBuffer
fileToByteBuffer(java.io.File file)
static byte[]
streamToByteArray(java.io.InputStream fis)
static java.nio.ByteBuffer
streamToByteBuffer(java.io.InputStream fis)
-
-
-
Method Detail
-
streamToByteBuffer
public static java.nio.ByteBuffer streamToByteBuffer(java.io.InputStream fis) throws GDFUpscaleException
- Throws:
GDFUpscaleException
-
streamToByteArray
public static byte[] streamToByteArray(java.io.InputStream fis) throws GDFUpscaleException
- Throws:
GDFUpscaleException
-
fileToByteBuffer
public static java.nio.ByteBuffer fileToByteBuffer(java.io.File file) throws GDFUpscaleException
- Throws:
GDFUpscaleException
-
fileToByteArray
public static byte[] fileToByteArray(java.io.File file) throws GDFUpscaleException
- Throws:
GDFUpscaleException
-
-