@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 locationIOExceptionpublic String readLocalResource(String resourcePath) throws IOException
resourcePath - file locationIOExceptionpublic static byte[] gzipCompress(String uncompressedData) throws IOException
uncompressedData - string data to be compressedIOExceptionCopyright © 2014. All rights reserved.