@HashCodeAndEqualsPlugin.Enhance public static class Plugin.Engine.Target.ForFolder extends java.lang.Object implements Plugin.Engine.Target, Plugin.Engine.Target.Sink
Modifier and Type | Class and Description |
---|---|
protected static interface |
Plugin.Engine.Target.ForFolder.Dispatcher
A dispatcher that allows for file copy operations based on NIO2 if available.
|
Plugin.Engine.Target.Discarding, Plugin.Engine.Target.ForFolder, Plugin.Engine.Target.ForJarFile, Plugin.Engine.Target.InMemory, Plugin.Engine.Target.Sink
Plugin.Engine.Target.Sink.ForJarOutputStream
Modifier and Type | Field and Description |
---|---|
protected static Plugin.Engine.Target.ForFolder.Dispatcher |
DISPATCHER
A dispatcher for using NIO2 if the current VM supports it.
|
private java.io.File |
folder
The folder that is represented by this instance.
|
Constructor and Description |
---|
ForFolder(java.io.File folder)
Creates a new target for a folder.
|
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(java.util.Map<TypeDescription,byte[]> binaryRepresentations)
Stores the supplied binary representation of types in this sink.
|
Plugin.Engine.Target.Sink |
write(java.util.jar.Manifest manifest)
Initializes this target prior to writing.
|
protected static final Plugin.Engine.Target.ForFolder.Dispatcher DISPATCHER
private final java.io.File folder
public ForFolder(java.io.File folder)
folder
- The folder that is represented by this instance.public Plugin.Engine.Target.Sink write(java.util.jar.Manifest manifest) throws java.io.IOException
write
in interface Plugin.Engine.Target
manifest
- The manifest for the target or null
if no manifest was found.java.io.IOException
- If an I/O error occurs.public void store(java.util.Map<TypeDescription,byte[]> binaryRepresentations) throws java.io.IOException
store
in interface Plugin.Engine.Target.Sink
binaryRepresentations
- The binary representations to store.java.io.IOException
- If an I/O error occurs.public void retain(Plugin.Engine.Source.Element element) throws java.io.IOException
retain
in interface Plugin.Engine.Target.Sink
element
- The element to retain.java.io.IOException
- If an I/O error occurs.public void close()
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable