|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jboss.dna.sequencer.java.JavaMetadataUtil
public class JavaMetadataUtil

| Method Summary | |
|---|---|
static String |
createPath(String path)
Create a path for the tree without index. |
static String |
createPathWithIndex(String path,
int index)
Create a path for the tree with index. |
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 |
|---|
equals, 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 createPathWithIndex(String path,
int index)
path - the path.index - the index begin with 1.
IllegalArgumentException - if the path is null, blank or empty, or if the index is not a positive valuepublic static String createPath(String path)
path - - the path.
IllegalArgumentException - if the path is null, blank or empty
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||