public static class Plugin.Engine.Target.Sink.ForJarOutputStream extends Object implements Plugin.Engine.Target.Sink
Plugin.Engine.Target.Sink.ForJarOutputStream
Constructor and Description |
---|
ForJarOutputStream(JarOutputStream outputStream)
Creates a new sink for a jar file.
|
Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
retain(Plugin.Engine.Source.Element element)
Retains the supplied element in its original form.
|
void |
store(ClassFileVersion classFileVersion,
Map<TypeDescription,byte[]> binaryRepresentations)
Stores the supplied binary representation of types in this sink.
|
void |
store(Map<TypeDescription,byte[]> binaryRepresentations)
Stores the supplied binary representation of types in this sink.
|
public ForJarOutputStream(JarOutputStream outputStream)
outputStream
- The output stream to write to.public void store(Map<TypeDescription,byte[]> binaryRepresentations) throws IOException
store
in interface Plugin.Engine.Target.Sink
binaryRepresentations
- The binary representations to store.IOException
- If an I/O error occurs.public void store(ClassFileVersion classFileVersion, Map<TypeDescription,byte[]> binaryRepresentations) throws IOException
store
in interface Plugin.Engine.Target.Sink
classFileVersion
- The version of the multi-release jar file, which should at least be 8
as previous
versions are not recognized by regular class loaders.binaryRepresentations
- The binary representations to store.IOException
- If an I/O error occurs.public void retain(Plugin.Engine.Source.Element element) throws IOException
retain
in interface Plugin.Engine.Target.Sink
element
- The element to retain.IOException
- If an I/O error occurs.public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
IOException
Copyright © 2014–2025. All rights reserved.