Class ClassFileDumper


  • class ClassFileDumper
    extends java.lang.Object
    Internal dumper for class files.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.io.File location  
    • Constructor Summary

      Constructors 
      Constructor Description
      ClassFileDumper​(java.lang.String location)
      Create a new dumper for the given location.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      (package private) void dump​(java.lang.String name, byte[] contents)
      Dumps the given binary content under the given name if a non- null location has been specified.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • location

        private final java.io.File location
    • Constructor Detail

      • ClassFileDumper

        ClassFileDumper​(java.lang.String location)
        Create a new dumper for the given location.
        Parameters:
        location - relative path to dump directory. null if no dumps should be written
    • Method Detail

      • dump

        void dump​(java.lang.String name,
                  byte[] contents)
           throws java.io.IOException
        Dumps the given binary content under the given name if a non- null location has been specified.
        Parameters:
        name - qualified class name in VM notation
        contents - binary contents
        Throws:
        java.io.IOException - in case of problems while dumping the file