Package net.bytebuddy.build
Class Plugin.Engine.Target.Sink.ForJarOutputStream
- java.lang.Object
-
- net.bytebuddy.build.Plugin.Engine.Target.Sink.ForJarOutputStream
-
- All Implemented Interfaces:
java.io.Closeable
,java.lang.AutoCloseable
,Plugin.Engine.Target.Sink
- Enclosing interface:
- Plugin.Engine.Target.Sink
public static class Plugin.Engine.Target.Sink.ForJarOutputStream extends java.lang.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 Modifier and Type Field Description private java.util.jar.JarOutputStream
outputStream
The output stream to write to.
-
Constructor Summary
Constructors Constructor Description ForJarOutputStream(java.util.jar.JarOutputStream outputStream)
Creates a new sink for a jar file.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
void
retain(Plugin.Engine.Source.Element element)
Retains the supplied element in its original form.void
store(java.util.Map<TypeDescription,byte[]> binaryRepresentations)
Stores the supplied binary representation of types in this sink.
-
-
-
Method Detail
-
store
public void store(java.util.Map<TypeDescription,byte[]> binaryRepresentations) throws java.io.IOException
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:
java.io.IOException
- If an I/O error occurs.
-
retain
public void retain(Plugin.Engine.Source.Element element) throws java.io.IOException
Retains the supplied element in its original form.- Specified by:
retain
in interfacePlugin.Engine.Target.Sink
- Parameters:
element
- The element to retain.- Throws:
java.io.IOException
- If an I/O error occurs.
-
close
public void close() throws java.io.IOException
- Specified by:
close
in interfacejava.lang.AutoCloseable
- Specified by:
close
in interfacejava.io.Closeable
- Throws:
java.io.IOException
-
-