Package com.nomagic.license.utils
Class CameoUtilities
java.lang.Object
com.nomagic.license.utils.CameoUtilities
- Direct Known Subclasses:
Utilities
General purpose utilities.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidcopy(InputStream input, OutputStream output) static voidCopies all bytes from Reader into Writer.static booleanReturns true of both objects are nulls or equalstatic booleanReturns true of both objects are nulls or equalstatic StringreplaceNewLine(String string, String lineSeparator) Separate lines with the provided separator string.static StringtoString(InputStream inputStream, String encoding) Get String representation of inputStream
-
Constructor Details
-
CameoUtilities
public CameoUtilities()
-
-
Method Details
-
isEqual
Returns true of both objects are nulls or equal- Parameters:
obj1- First object.obj2- Second object.- Returns:
- boolean
-
isEqual
Returns true of both objects are nulls or equal- Parameters:
obj1- object list.obj2- object list.- Returns:
- boolean
-
toString
public static String toString(InputStream inputStream, @CheckForNull String encoding) throws IOException Get String representation of inputStream- Parameters:
inputStream- The given inputStream- Returns:
- String representation.
- Throws:
IOException
-
replaceNewLine
Separate lines with the provided separator string.- Parameters:
string- input string.lineSeparator- line separator.- Returns:
- result string.
-
copy
Copies all bytes from Reader into Writer. Closes the reader and writer.- Parameters:
input- the reader.output- the writer.- Throws:
IOException
-
copy
- Throws:
IOException
-