com.ideanest.util
Class Safe
java.lang.Object
|
+--com.ideanest.util.Safe
- public final class Safe
- extends java.lang.Object
This type was created in VisualAge.
- Author:
- Piotr Kaminski
Method Summary |
static java.lang.Object |
clone(java.lang.Object o)
Attempt to clone an object, if possible. |
static boolean |
equals(java.lang.Object a,
java.lang.Object b)
|
static java.io.OutputStream |
getOutputStream(java.net.URLConnection conn)
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EMPTY_OBJECT_ARRAY
public static final java.lang.Object[] EMPTY_OBJECT_ARRAY
EMPTY_CLASS_ARRAY
public static final java.lang.Class[] EMPTY_CLASS_ARRAY
clone
public static java.lang.Object clone(java.lang.Object o)
- Attempt to clone an object, if possible. If the given object
implements
Cloneable and has a public clone()
method, it will be invoked and the result returned. Otherwise, or
if a CloneNotSupportedException is thrown, null
is returned.
- Parameters:
o - the object to clone
- Returns:
- a clone of the object or
null
equals
public static boolean equals(java.lang.Object a,
java.lang.Object b)
getOutputStream
public static java.io.OutputStream getOutputStream(java.net.URLConnection conn)
throws java.io.IOException
java.io.IOException
|