Package net.bytebuddy.build
Interface Plugin.Engine.Target.Sink
-
- All Superinterfaces:
java.lang.AutoCloseable
,java.io.Closeable
- All Known Implementing Classes:
Plugin.Engine.Target.Discarding
,Plugin.Engine.Target.ForFolder
,Plugin.Engine.Target.InMemory
,Plugin.Engine.Target.Sink.ForJarOutputStream
- Enclosing interface:
- Plugin.Engine.Target
public static interface Plugin.Engine.Target.Sink extends java.io.Closeable
A sink represents an active writing process.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
Plugin.Engine.Target.Sink.ForJarOutputStream
Implements a sink for a jar file.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description 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
void store(java.util.Map<TypeDescription,byte[]> binaryRepresentations) throws java.io.IOException
Stores the supplied binary representation of types in this sink.- Parameters:
binaryRepresentations
- The binary representations to store.- Throws:
java.io.IOException
- If an I/O error occurs.
-
retain
void retain(Plugin.Engine.Source.Element element) throws java.io.IOException
Retains the supplied element in its original form.- Parameters:
element
- The element to retain.- Throws:
java.io.IOException
- If an I/O error occurs.
-
-