Uses of Class
de.xima.fc.common.auto_closeable.AutoCloseableWrapper
Packages that use AutoCloseableWrapper
-
Uses of AutoCloseableWrapper in de.xima.fc.common.auto_closeable
Methods in de.xima.fc.common.auto_closeable that return AutoCloseableWrapperModifier and TypeMethodDescriptionstatic <T> AutoCloseableWrapper<T, Exception> AutoCloseableWrapper.ofObject(T wrapped) Creates a wrapper for the given object that will close the object when closed, if the object implementsAutoCloseable; and do nothing otherwise.static <T> AutoCloseableWrapper<T, RuntimeException> AutoCloseableWrapper.ofObjectQuiet(T wrapped) Creates a wrapper for the given object that will close the object when closed, if the object implementsAutoCloseable; and do nothing otherwise.static <T, E extends Exception>
AutoCloseableWrapper<T, E> AutoCloseableWrapper.withCloseAction(T wrapped, ITypedThrowingConsumer<? super T, ? extends E> close) Creates a wrapper for the given object that will call the given close action when closed. -
Uses of AutoCloseableWrapper in de.xima.fc.common.file
Methods in de.xima.fc.common.file that return AutoCloseableWrapperModifier and TypeMethodDescriptionTempFileCreators.withNewTempFolder(String folderPrefix, String filePrefix, String fileSuffix) Creates a new temporary folder within the default temporary folder and returns a creator that creates temporary files in that new temporary folder.TempFileCreators.withNewTempFolder(Path folder, String folderPrefix, String filePrefix, String fileSuffix) Creates a new temporary folder within the given folder and returns a creator that creates temporary files in that new temporary folder.