Constructor and Description |
---|
CameoUtilities() |
Modifier and Type | Method and Description |
---|---|
static void |
copy(java.io.InputStream input,
java.io.OutputStream output) |
static void |
copy(java.io.Reader input,
java.io.Writer output)
Copies all bytes from Reader into Writer.
|
static boolean |
isEqual(java.lang.Object[] obj1,
java.lang.Object[] obj2)
Returns true of both objects are nulls or equal
|
static boolean |
isEqual(java.lang.Object obj1,
java.lang.Object obj2)
Returns true of both objects are nulls or equal
|
static java.lang.String |
replaceNewLine(java.lang.String string,
java.lang.String lineSeparator)
Separate lines with the provided separator string.
|
static java.lang.String |
toString(java.io.InputStream inputStream,
java.lang.String encoding)
Get String representation of inputStream
|
public static boolean isEqual(java.lang.Object obj1, java.lang.Object obj2)
obj1
- First object.obj2
- Second object.public static boolean isEqual(java.lang.Object[] obj1, java.lang.Object[] obj2)
obj1
- object list.obj2
- object list.public static java.lang.String toString(java.io.InputStream inputStream, @CheckForNull java.lang.String encoding) throws java.io.IOException
inputStream
- The given inputStreamjava.io.IOException
public static java.lang.String replaceNewLine(java.lang.String string, java.lang.String lineSeparator)
string
- input string.lineSeparator
- line separator.public static void copy(java.io.Reader input, java.io.Writer output) throws java.io.IOException
input
- the reader.output
- the writer.java.io.IOException
public static void copy(java.io.InputStream input, java.io.OutputStream output) throws java.io.IOException
java.io.IOException