Package net.bytebuddy.build
Class Plugin.Engine.Target.ForJarFile
- java.lang.Object
-
- net.bytebuddy.build.Plugin.Engine.Target.ForJarFile
-
- All Implemented Interfaces:
Plugin.Engine.Target
- Enclosing interface:
- Plugin.Engine.Target
@Enhance public static class Plugin.Engine.Target.ForJarFile extends java.lang.Object implements Plugin.Engine.Target
Represents a jar file as a target.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface net.bytebuddy.build.Plugin.Engine.Target
Plugin.Engine.Target.Discarding, Plugin.Engine.Target.ForFolder, Plugin.Engine.Target.ForJarFile, Plugin.Engine.Target.InMemory, Plugin.Engine.Target.Sink
-
-
Field Summary
Fields Modifier and Type Field Description private java.io.File
file
The jar file that is represented by this target.
-
Constructor Summary
Constructors Constructor Description ForJarFile(java.io.File file)
Creates a new target for a jar file.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Plugin.Engine.Target.Sink
write(java.util.jar.Manifest manifest)
Initializes this target prior to writing.
-
-
-
Method Detail
-
write
public Plugin.Engine.Target.Sink write(java.util.jar.Manifest manifest) throws java.io.IOException
Initializes this target prior to writing.- Specified by:
write
in interfacePlugin.Engine.Target
- Parameters:
manifest
- The manifest for the target ornull
if no manifest was found.- Returns:
- The sink to write to.
- Throws:
java.io.IOException
- If an I/O error occurs.
-
-