Class JarTreeShakeInput.BytecodeSupplier

java.lang.Object
io.quarkus.deployment.pkg.steps.JarTreeShakeInput.BytecodeSupplier
All Implemented Interfaces:
Supplier<byte[]>
Enclosing class:
JarTreeShakeInput

static class JarTreeShakeInput.BytecodeSupplier extends Object implements Supplier<byte[]>
Lazy bytecode loader that reads from a Path on demand. The cache is typically cleared immediately after use by JarTreeShakeInput.readBytecode(java.lang.String) to limit peak memory, so in practice each read goes to disk. The path must remain valid (i.e. the owning OpenPathTree must stay open) for the lifetime of this supplier. Records the file size at construction for reporting.
  • Field Details

    • size

      final long size
  • Constructor Details

    • BytecodeSupplier

      BytecodeSupplier(Path path)
  • Method Details

    • get

      public byte[] get()
      Specified by:
      get in interface Supplier<byte[]>