Class ClassFileDumper

java.lang.Object
org.jacoco.agent.rt.internal.ClassFileDumper

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

    Fields
    Modifier and Type
    Field
    Description
    private final File
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    Create a new dumper for the given location.
  • Method Summary

    Modifier and Type
    Method
    Description
    (package private) void
    dump(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 Details

    • location

      private final File location
  • Constructor Details

    • ClassFileDumper

      ClassFileDumper(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 Details

    • dump

      void dump(String name, byte[] contents) throws 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:
      IOException - in case of problems while dumping the file