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
-
-
Constructor Summary
Constructors Constructor Description ForJarFile(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(Manifest manifest)
Initializes this target prior to writing.
-
-
-
Constructor Detail
-
ForJarFile
public ForJarFile(File file)
Creates a new target for a jar file.- Parameters:
file
- The jar file that is represented by this target.
-
-
Method Detail
-
write
public Plugin.Engine.Target.Sink write(Manifest manifest) throws 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:
IOException
- If an I/O error occurs.
-
-