ClassNameReader (Apache Ant API)
Keywords: org.apache.tools.ant.taskdefs.optional.jlink.ClassNameReader class

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.apache.tools.ant.taskdefs.optional.jlink
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
`ClassNameReader()`

Method Summary
`static java.lang.String` | `getClassName(java.io.InputStream input)` Get the class name of a class in an input stream.

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### ClassNameReader

    public ClassNameReader()

Method Detail

### getClassName

    public static java.lang.String getClassName(java.io.InputStream input)
                                         throws java.io.IOException

  Get the class name of a class in an input stream.

  Parameters:
    `input` - an `InputStream` value
  Returns:
    the name of the class
  Throws:
    `java.io.IOException` - if an error occurs

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD