Class 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

      Constructor Description
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.String getClassName​( 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​( input)
        Get the class name of a class in an input stream.
        input - an InputStream value
        the name of the class
        Throws: - if an error occurs