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 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 -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionInitializes this target prior to writing.
-
Field Details
-
file
The jar file that is represented by this target.
-
-
Constructor Details
-
ForJarFile
Creates a new target for a jar file.- Parameters:
file
- The jar file that is represented by this target.
-
-
Method Details
-
write
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:
IOException
- If an I/O error occurs.
-