@Service public class ResourceUtil extends Object
Constructor and Description |
---|
ResourceUtil() |
Modifier and Type | Method and Description |
---|---|
static byte[] |
gzipCompress(String uncompressedData)
Compresses string data into a byte array
|
String |
readLocalResource(String resourcePath)
Reads a local resource file into a string from classpath
|
String |
readLocalResource(String[] resourcePaths)
Reads local resource files into a string from classpath
|
public String readLocalResource(String[] resourcePaths) throws IOException
resourcePaths
- file locationIOException
public String readLocalResource(String resourcePath) throws IOException
resourcePath
- file locationIOException
public static byte[] gzipCompress(String uncompressedData) throws IOException
uncompressedData
- string data to be compressedIOException
Copyright © 2014. All rights reserved.