java.lang.Object
iu.type.ComponentTarget
- All Implemented Interfaces:
AutoCloseable
Writes entries to a
Component
's dedicated temporary path files.-
Constructor Summary
ConstructorsConstructorDescriptionComponentTarget
(Path path) Creates a new target at a given temporary file location. -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
(package private) void
put
(String name, InputStream data) Adds an entry.
-
Constructor Details
-
ComponentTarget
ComponentTarget(Path path) throws IOException Creates a new target at a given temporary file location.- Parameters:
path
- temp file path- Throws:
IOException
- If an I/O error occurs writing to the file
-
-
Method Details
-
put
Adds an entry.- Parameters:
name
- entry namedata
- input for reading raw data to copy to the entry- Throws:
IOException
- If an I/O error occurs writing to the file
-
close
- Specified by:
close
in interfaceAutoCloseable
- Throws:
IOException
-