Class GoogleGuavaUtils
java.lang.Object
eu.europa.esig.dss.utils.guava.impl.GoogleGuavaUtils
- All Implemented Interfaces:
IUtils
public class GoogleGuavaUtils extends Object implements IUtils
-
Constructor Summary
Constructors Constructor Description GoogleGuavaUtils() -
Method Summary
Modifier and Type Method Description booleanareStringsEqual(String text1, String text2)booleanareStringsEqualIgnoreCase(String text1, String text2)voidcleanDirectory(File directory)voidcloseQuietly(Closeable closeable)intcollectionSize(Collection collection)voidcopy(InputStream is, OutputStream os)booleanendsWithIgnoreCase(String text, String expected)byte[]fromBase64(String base64)byte[]fromHex(String hex)longgetInputStreamSize(InputStream is)booleanisArrayEmpty(byte[] array)booleanisArrayEmpty(Object[] array)booleanisArrayNotEmpty(byte[] array)booleanisArrayNotEmpty(Object[] array)booleanisBase64Encoded(String base64String)booleanisCollectionEmpty(Collection collection)booleanisCollectionNotEmpty(Collection collection)booleanisMapEmpty(Map<?,?> map)booleanisMapNotEmpty(Map<?,?> map)booleanisStringBlank(String text)booleanisStringDigits(String text)booleanisStringEmpty(String text)booleanisStringNotBlank(String text)booleanisStringNotEmpty(String text)booleanisTrue(Boolean bool)StringjoinStrings(Collection<String> strings, String separator)Collection<File>listFiles(File folder, String[] extensions, boolean recursive)StringlowerCase(String text)byte[]subarray(byte[] array, int start, int length)StringsubstringAfter(String text, String after)StringtoBase64(byte[] bytes)byte[]toByteArray(InputStream is)StringtoHex(byte[] bytes)Stringtrim(String text)StringupperCase(String text)voidwrite(byte[] content, OutputStream os)
-
Constructor Details
-
GoogleGuavaUtils
public GoogleGuavaUtils()
-
-
Method Details
-
isStringEmpty
- Specified by:
isStringEmptyin interfaceIUtils
-
isStringNotEmpty
- Specified by:
isStringNotEmptyin interfaceIUtils
-
isStringBlank
- Specified by:
isStringBlankin interfaceIUtils
-
isStringNotBlank
- Specified by:
isStringNotBlankin interfaceIUtils
-
areStringsEqual
- Specified by:
areStringsEqualin interfaceIUtils
-
areStringsEqualIgnoreCase
- Specified by:
areStringsEqualIgnoreCasein interfaceIUtils
-
isStringDigits
- Specified by:
isStringDigitsin interfaceIUtils
-
trim
-
joinStrings
- Specified by:
joinStringsin interfaceIUtils
-
substringAfter
- Specified by:
substringAfterin interfaceIUtils
-
endsWithIgnoreCase
- Specified by:
endsWithIgnoreCasein interfaceIUtils
-
lowerCase
-
upperCase
-
isArrayEmpty
- Specified by:
isArrayEmptyin interfaceIUtils
-
isArrayNotEmpty
- Specified by:
isArrayNotEmptyin interfaceIUtils
-
isArrayEmpty
public boolean isArrayEmpty(byte[] array)- Specified by:
isArrayEmptyin interfaceIUtils
-
isArrayNotEmpty
public boolean isArrayNotEmpty(byte[] array)- Specified by:
isArrayNotEmptyin interfaceIUtils
-
subarray
public byte[] subarray(byte[] array, int start, int length) -
isTrue
-
isCollectionEmpty
- Specified by:
isCollectionEmptyin interfaceIUtils
-
isCollectionNotEmpty
- Specified by:
isCollectionNotEmptyin interfaceIUtils
-
isMapEmpty
- Specified by:
isMapEmptyin interfaceIUtils
-
isMapNotEmpty
- Specified by:
isMapNotEmptyin interfaceIUtils
-
collectionSize
- Specified by:
collectionSizein interfaceIUtils
-
toHex
-
fromHex
-
isBase64Encoded
- Specified by:
isBase64Encodedin interfaceIUtils
-
toBase64
-
fromBase64
- Specified by:
fromBase64in interfaceIUtils
-
toByteArray
- Specified by:
toByteArrayin interfaceIUtils- Throws:
IOException
-
closeQuietly
- Specified by:
closeQuietlyin interfaceIUtils
-
copy
- Specified by:
copyin interfaceIUtils- Throws:
IOException
-
write
- Specified by:
writein interfaceIUtils- Throws:
IOException
-
getInputStreamSize
- Specified by:
getInputStreamSizein interfaceIUtils- Throws:
IOException
-
cleanDirectory
- Specified by:
cleanDirectoryin interfaceIUtils- Throws:
IOException
-
listFiles
-