Package net.bytebuddy.build
Class Plugin.Engine.Target.Sink.ForJarOutputStream
java.lang.Object
net.bytebuddy.build.Plugin.Engine.Target.Sink.ForJarOutputStream
- All Implemented Interfaces:
Closeable
,AutoCloseable
,Plugin.Engine.Target.Sink
- Enclosing interface:
- Plugin.Engine.Target.Sink
public static class Plugin.Engine.Target.Sink.ForJarOutputStream
extends Object
implements Plugin.Engine.Target.Sink
Implements a sink for a jar file.
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.bytebuddy.build.Plugin.Engine.Target.Sink
Plugin.Engine.Target.Sink.ForJarOutputStream
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionForJarOutputStream
(JarOutputStream outputStream) Creates a new sink for a jar file. -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
void
retain
(Plugin.Engine.Source.Element element) Retains the supplied element in its original form.void
store
(Map<TypeDescription, byte[]> binaryRepresentations) Stores the supplied binary representation of types in this sink.
-
Field Details
-
outputStream
The output stream to write to.
-
-
Constructor Details
-
ForJarOutputStream
Creates a new sink for a jar file.- Parameters:
outputStream
- The output stream to write to.
-
-
Method Details
-
store
Stores the supplied binary representation of types in this sink.- Specified by:
store
in interfacePlugin.Engine.Target.Sink
- Parameters:
binaryRepresentations
- The binary representations to store.- Throws:
IOException
- If an I/O error occurs.
-
retain
Retains the supplied element in its original form.- Specified by:
retain
in interfacePlugin.Engine.Target.Sink
- Parameters:
element
- The element to retain.- Throws:
IOException
- If an I/O error occurs.
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Throws:
IOException
-