Package one.microstream.afs
Class AFS
java.lang.Object
one.microstream.afs.AFS
public class AFS extends Object
-
Constructor Summary
Constructors Constructor Description AFS()
-
Method Summary
Modifier and Type Method Description static <R> R
apply(AFile file, Function<? super AReadableFile,R> logic)
static void
applyWriting(AFile file, Object user, Consumer<? super AWritableFile> logic)
static void
applyWriting(AFile file, Consumer<? super AWritableFile> logic)
static void
close(AReadableFile file, Throwable cause)
static <D extends ADirectory>
DensureExists(D directory)
static void
execute(AFile file, Object user, Consumer<? super AReadableFile> logic)
static void
execute(AFile file, Consumer<? super AReadableFile> logic)
static <R> R
executeWriting(AFile file, Object user, Function<? super AWritableFile,R> logic)
static <R> R
executeWriting(AFile file, Function<? super AWritableFile,R> logic)
static XGettingEnum<ADirectory>
listDirectories(ADirectory directory, Predicate<? super ADirectory> selector)
static <C extends Consumer<? super ADirectory>>
ClistDirectories(ADirectory directory, Predicate<? super ADirectory> selector, C collector)
static XGettingEnum<AFile>
listFiles(ADirectory directory, Predicate<? super AFile> selector)
static <C extends Consumer<? super AFile>>
ClistFiles(ADirectory directory, Predicate<? super AFile> selector, C collector)
static XGettingEnum<AItem>
listItems(ADirectory directory, Predicate<? super AItem> selector)
static <C extends Consumer<? super AItem>>
ClistItems(ADirectory directory, Predicate<? super AItem> selector, C collector)
static byte[]
read_bytes(AFile file)
static String
readString(AFile file)
static String
readString(AFile file, Charset charSet)
static <R> R
tryExecuteWriting(AFile file, Object user, Function<? super AWritableFile,R> logic)
static <R> R
tryExecuteWriting(AFile file, Function<? super AWritableFile,R> logic)
static <R> R
tryExecuteWritingDefaulting(AFile file, Object user, R defaultValue, Function<? super AWritableFile,R> logic)
static <R> R
tryExecuteWritingDefaulting(AFile file, R defaultValue, Function<? super AWritableFile,R> logic)
static long
write_bytes(AFile file, byte[] bytes)
static long
writeBytes(AFile file, ByteBuffer bytes)
static long
writeString(AFile file, String string)
static long
writeString(AFile file, String string, Charset charset)
-
Constructor Details
-
AFS
public AFS()
-
-
Method Details
-
listItems
public static XGettingEnum<AItem> listItems(ADirectory directory, Predicate<? super AItem> selector) -
listItems
public static <C extends Consumer<? super AItem>> C listItems(ADirectory directory, Predicate<? super AItem> selector, C collector) -
listDirectories
public static XGettingEnum<ADirectory> listDirectories(ADirectory directory, Predicate<? super ADirectory> selector) -
listDirectories
public static <C extends Consumer<? super ADirectory>> C listDirectories(ADirectory directory, Predicate<? super ADirectory> selector, C collector) -
listFiles
public static XGettingEnum<AFile> listFiles(ADirectory directory, Predicate<? super AFile> selector) -
listFiles
public static <C extends Consumer<? super AFile>> C listFiles(ADirectory directory, Predicate<? super AFile> selector, C collector) -
ensureExists
-
readString
-
readString
-
read_bytes
-
writeString
-
writeString
-
write_bytes
-
apply
-
execute
-
execute
-
writeBytes
-
applyWriting
-
applyWriting
-
executeWriting
-
executeWriting
public static <R> R executeWriting(AFile file, Object user, Function<? super AWritableFile,R> logic) -
tryExecuteWriting
-
tryExecuteWritingDefaulting
public static <R> R tryExecuteWritingDefaulting(AFile file, R defaultValue, Function<? super AWritableFile,R> logic) -
tryExecuteWriting
public static <R> R tryExecuteWriting(AFile file, Object user, Function<? super AWritableFile,R> logic) -
tryExecuteWritingDefaulting
public static <R> R tryExecuteWritingDefaulting(AFile file, Object user, R defaultValue, Function<? super AWritableFile,R> logic) -
close
-