|
ModeShape Distribution 3.0.0.Beta4 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.modeshape.sequencer.javafile.JavaMetadataUtil
public class JavaMetadataUtil
Utility class for working with metadata.
Method Summary | |
---|---|
static String |
expressionString(org.eclipse.jdt.core.dom.Expression expression)
|
static char[] |
getJavaSourceFromTheInputStream(InputStream inputStream,
long length,
String encoding)
Gets Java source from the InputStream . |
static String |
getName(org.eclipse.jdt.core.dom.Name name)
Get the fully qualified name from the Name . |
static long |
length(InputStream stream)
Get the length of the input stream. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static long length(InputStream stream) throws IOException
stream
- - the InputStream
IOException
- - exceptional situation during calculating the length.public static char[] getJavaSourceFromTheInputStream(InputStream inputStream, long length, String encoding) throws IOException
InputStream
.
inputStream
- - the FileInputStream
.length
- - the length of the java file.encoding
- - the encoding of the source, if there is one.
IOException
- - exceptional error can be thrown during the reading of the file.public static String getName(org.eclipse.jdt.core.dom.Name name)
Name
.
name
- - the name to process.
public static String expressionString(org.eclipse.jdt.core.dom.Expression expression)
|
ModeShape Distribution 3.0.0.Beta4 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |