Class ClassNameReader
java.lang.Object
org.apache.tools.ant.taskdefs.optional.jlink.ClassNameReader
public class ClassNameReader
extends java.lang.Object
Provides a quick and dirty way to determine the true name of a class
given just an InputStream. Reads in just enough to perform this
minimal task only.
-
Constructor Summary
Constructors Constructor Description ClassNameReader()
-
Method Summary
Modifier and Type Method Description static java.lang.String
getClassName(java.io.InputStream input)
Get the class name of a class in an input stream.
-
Constructor Details
-
ClassNameReader
public ClassNameReader()
-
-
Method Details
-
getClassName
public static java.lang.String getClassName(java.io.InputStream input) throws java.io.IOExceptionGet the class name of a class in an input stream.- Parameters:
input
- anInputStream
value- Returns:
- the name of the class
- Throws:
java.io.IOException
- if an error occurs
-