|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.ow2.jonas.eclipse.compiler.Util
public class Util
Eclipse Compiler Utilities.
Constructor Summary | |
---|---|
Util()
|
Method Summary | |
---|---|
static String |
getClassName(String source)
Get the fully qualified Java class name from a source file (system path + .java). |
static byte[] |
toByteArray(InputStream is)
Convert a given InputStream in a byte array. |
static char[] |
toCharArray(InputStream is,
String charset)
Transform a given InputStream into a char array. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Util()
Method Detail |
---|
public static char[] toCharArray(InputStream is, String charset)
InputStream
into a char array. May return null.
is
- the InputStream
to convertcharset
- Encoding to use.
InputStream
as a char arraypublic static byte[] toByteArray(InputStream is) throws IOException
InputStream
in a byte array.
is
- Class file input
InputStream
IOException
- if InputStream manipulation fails.public static String getClassName(String source)
source
- Java Source file name
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |