Package one.microstream.io
Class XIO.unchecked
java.lang.Object
one.microstream.io.XIO.unchecked
- Enclosing class:
- XIO
public static final class XIO.unchecked extends Object
- 
Constructor SummaryConstructors Constructor Description unchecked()
- 
Method SummaryModifier and Type Method Description static <C extends Closeable>
 Cclose(C closable)static <C extends Closeable>
 Cclose(C closable, Throwable suppressed)static booleandelete(Path path)static <P extends Path>
 PensureDirectory(P directory)static <P extends Path>
 PensureDirectoryAndFile(P file)static <P extends Path>
 PensureFile(P file)static <P extends Path>
 PensureWriteableFile(P file)static booleanexists(Path path)static booleanhasNoFiles(Path directory)static booleanisDirectory(Path path)static <C extends Consumer<? super Path>>
 CiterateEntries(Path directory, C logic)Warning: this (because of using Files.newDirectoryStream) does some weird file opening/locking stuff.static <C extends Consumer<? super Path>>
 CiterateEntries(Path directory, C logic, Predicate<? super Path> selector)Warning: this (because of using Files.newDirectoryStream) does some weird file opening/locking stuff.static longlastModified(Path file)static Path[]listEntries(Path directory)static <C extends Consumer<? super Path>>
 ClistEntries(Path directory, C target)static <C extends Consumer<? super Path>>
 ClistEntries(Path directory, C target, Predicate<? super Path> selector)static Path[]listEntries(Path directory, Predicate<? super Path> selector)static voidmove(Path sourceFile, Path targetFile)static longsize(FileChannel fileChannel)static longsize(Path file)
- 
Constructor Details- 
uncheckedpublic unchecked()
 
- 
- 
Method Details- 
close- Throws:
- IORuntimeException
 
- 
close- Throws:
- RuntimeException
 
- 
closepublic static final <C extends Closeable> C close(C closable, Throwable suppressed) throws IORuntimeException- Throws:
- IORuntimeException
 
- 
closepublic static final <C extends AutoCloseable> C close(C closable, Throwable suppressed) throws RuntimeException- Throws:
- RuntimeException
 
- 
size- Throws:
- IORuntimeException
 
- 
isDirectory- Throws:
- IORuntimeException
 
- 
exists- Throws:
- IORuntimeException
 
- 
size- Throws:
- IORuntimeException
 
- 
delete- Throws:
- IORuntimeException
 
- 
listEntries- Throws:
- IORuntimeException
 
- 
listEntriespublic static Path[] listEntries(Path directory, Predicate<? super Path> selector) throws IORuntimeException- Throws:
- IORuntimeException
 
- 
listEntriespublic static final <C extends Consumer<? super Path>> C listEntries(Path directory, C target) throws IORuntimeException- Throws:
- IORuntimeException
 
- 
listEntriespublic static final <C extends Consumer<? super Path>> C listEntries(Path directory, C target, Predicate<? super Path> selector) throws IORuntimeException- Throws:
- IORuntimeException
 
- 
iterateEntriespublic static <C extends Consumer<? super Path>> C iterateEntries(Path directory, C logic) throws IORuntimeExceptionWarning: this (because of using Files.newDirectoryStream) does some weird file opening/locking stuff.Also see: https://stackoverflow.com/questions/48311252/a-bit-strange-behaviour-of-files-delete-and-files-deleteifexists - Type Parameters:
- C-
- Parameters:
- directory-
- logic-
- Returns:
- Throws:
- IORuntimeException
 
- 
iterateEntriespublic static <C extends Consumer<? super Path>> C iterateEntries(Path directory, C logic, Predicate<? super Path> selector) throws IORuntimeExceptionWarning: this (because of using Files.newDirectoryStream) does some weird file opening/locking stuff.Also see: https://stackoverflow.com/questions/48311252/a-bit-strange-behaviour-of-files-delete-and-files-deleteifexists - Type Parameters:
- C-
- Parameters:
- directory-
- logic-
- selector-
- Returns:
- Throws:
- IORuntimeException
 
- 
hasNoFiles- Throws:
- IORuntimeException
 
- 
lastModified- Throws:
- IORuntimeException
 
- 
ensureDirectory- Throws:
- IORuntimeException
 
- 
ensureDirectoryAndFile- Throws:
- IORuntimeException
 
- 
ensureFile- Throws:
- IORuntimeException
 
- 
ensureWriteableFile- Throws:
- IORuntimeException
 
- 
movepublic static void move(Path sourceFile, Path targetFile) throws IORuntimeException, RuntimeException- Throws:
- IORuntimeException
- RuntimeException
 
 
-