Package javassist

Class ClassPoolTail


  • final class ClassPoolTail
    extends java.lang.Object
    • Constructor Detail

      • ClassPoolTail

        public ClassPoolTail()
    • Method Detail

      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • removeClassPath

        public void removeClassPath​(ClassPath cp)
      • appendSystemPath

        public ClassPath appendSystemPath()
      • openClassfile

        java.io.InputStream openClassfile​(java.lang.String classname)
                                   throws NotFoundException
        Opens the class file for the class specified by classname.
        Parameters:
        classname - a fully-qualified class name
        Returns:
        null if the file has not been found.
        Throws:
        NotFoundException - if any error is reported by ClassPath.
      • find

        public java.net.URL find​(java.lang.String classname)
        Searches the class path to obtain the URL of the class file specified by classname. It is also used to determine whether the class file exists.
        Parameters:
        classname - a fully-qualified class name.
        Returns:
        null if the class file could not be found.
      • readStream

        public static byte[] readStream​(java.io.InputStream fin)
                                 throws java.io.IOException
        Reads from an input stream until it reaches the end.
        Returns:
        the contents of that input stream
        Throws:
        java.io.IOException
      • copyStream

        public static void copyStream​(java.io.InputStream fin,
                                      java.io.OutputStream fout)
                               throws java.io.IOException
        Reads from an input stream and write to an output stream until it reaches the end. This method does not close the streams.
        Throws:
        java.io.IOException