org.sapia.clazzy
Class Utils
java.lang.Object
|
+--org.sapia.clazzy.Utils
- public class Utils
- extends Object
Holds misc. utilities.
- Author:
- Yanick Duchesne
- Copyright:
- Copyright © 2002-2004 Sapia Open
Source Software . All Rights Reserved.
- License:
- Read the license.txt file of the jar or visit the license page at the Sapia
OSS web site
|
Constructor Summary |
Utils()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Utils
public Utils()
streamToBytes
public static byte[] streamToBytes(InputStream is)
throws IOException
- Parameters:
is - an InputStream
- Returns:
- the
byte s of data contained in the stream.
- Throws:
IOException - if an IO problem occurs.
getPackageNameFor
public static String getPackageNameFor(String className)
- Parameters:
className -
- Returns:
- the name of package for the given class name, or null if
no package exists (class is part of default package).
Copyright © 2002 Sapia Open Community, Inc. All Rights Reserved.