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.CloseableA sink represents an active writing process.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classPlugin.Engine.Target.Sink.ForJarOutputStreamImplements a sink for a jar file.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidretain(Plugin.Engine.Source.Element element)Retains the supplied element in its original form.voidstore(java.util.Map<TypeDescription,byte[]> binaryRepresentations)Stores the supplied binary representation of types in this sink.voidstore(ClassFileVersion classFileVersion, 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.
-
store
void store(ClassFileVersion classFileVersion, java.util.Map<TypeDescription,byte[]> binaryRepresentations) throws java.io.IOException
Stores the supplied binary representation of types in this sink.- Parameters:
classFileVersion- The version of the multi-release jar file, which should at least be8as previous versions are not recognized by regular class loaders.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.
-
-