|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectyu.ac.bg.etf.javaqx.util.Utilities
Helper Class.
Method Summary | |
static boolean |
equals(java.lang.Object obj1,
java.lang.Object obj2)
Returns true if the specified objects are equal or both are null. |
static byte[] |
toByteArray(java.io.InputStream is)
Extracts bytes from specified input stream. |
static java.lang.String |
toString(java.io.InputStream is)
Reads all input stream content as string. |
static java.lang.String |
toString(java.io.Reader reader)
Reads read content as string. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static boolean equals(java.lang.Object obj1, java.lang.Object obj2)
obj1
- the first objectobj2
- the second object
public static byte[] toByteArray(java.io.InputStream is) throws java.io.IOException
is
- the input stream
java.io.IOException
- on an I/O errorpublic static java.lang.String toString(java.io.Reader reader) throws java.io.IOException
reader
- the reader
java.io.IOException
- on an I/O errorpublic static java.lang.String toString(java.io.InputStream is) throws java.io.IOException
is
- the input stream
java.io.IOException
- on an I/O error
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |