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
-
-
Constructor Summary
Constructors Constructor Description ForJarOutputStream(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(Map<TypeDescription,byte[]> binaryRepresentations)
Stores the supplied binary representation of types in this sink.
-
-
-
Constructor Detail
-
ForJarOutputStream
public ForJarOutputStream(JarOutputStream outputStream)
Creates a new sink for a jar file.- Parameters:
outputStream
- The output stream to write to.
-
-
Method Detail
-
store
public void store(Map<TypeDescription,byte[]> binaryRepresentations) throws 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:
IOException
- If an I/O error occurs.
-
retain
public void retain(Plugin.Engine.Source.Element element) throws IOException
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
public void close() throws IOException
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Throws:
IOException
-
-