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(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 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–2024. All rights reserved.