java.lang.Object
org.sejda.io.ThreadBoundCopiesSupplier<T>
- All Implemented Interfaces:
Closeable,AutoCloseable,Supplier<T>
public class ThreadBoundCopiesSupplier<T extends SeekableSource>
extends Object
implements Closeable, Supplier<T>
Component supplying per-thread copies of a
SeekableSource using the provided supplier. When closed, all the generated copies are closed as well.- Author:
- Andrea Vacondio
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
ThreadBoundCopiesSupplier
-
-
Method Details
-
get
- Specified by:
getin interfaceSupplier<T extends SeekableSource>
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable
-