Package com.nomagic.license.utils
Class CameoUtilities
java.lang.Object
com.nomagic.license.utils.CameoUtilities
- Direct Known Subclasses:
Utilities
General purpose utilities.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
copy
(InputStream input, OutputStream output) static void
Copies all bytes from Reader into Writer.static boolean
Returns true of both objects are nulls or equalstatic boolean
Returns true of both objects are nulls or equalstatic String
replaceNewLine
(String string, String lineSeparator) Separate lines with the provided separator string.static String
toString
(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
-