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 <R> R
applyWriting(AFile file, Object user, Function<? super AWritableFile,R> logic)
static <R> R
applyWriting(AFile file, Function<? super AWritableFile,R> 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 void
executeWriting(AFile file, Object user, Consumer<? super AWritableFile> logic)
static void
executeWriting(AFile file, Consumer<? super AWritableFile> 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
tryApplyWriting(AFile file, Object user, Function<? super AWritableFile,R> logic)
static <R> R
tryApplyWriting(AFile file, Function<? super AWritableFile,R> logic)
static <R> R
tryApplyWritingDefaulting(AFile file, Object user, R defaultValue, Function<? super AWritableFile,R> logic)
static <R> R
tryApplyWritingDefaulting(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
-
executeWriting
-
executeWriting
-
applyWriting
-
applyWriting
public static <R> R applyWriting(AFile file, Object user, Function<? super AWritableFile,R> logic) -
tryApplyWriting
-
tryApplyWritingDefaulting
public static <R> R tryApplyWritingDefaulting(AFile file, R defaultValue, Function<? super AWritableFile,R> logic) -
tryApplyWriting
public static <R> R tryApplyWriting(AFile file, Object user, Function<? super AWritableFile,R> logic) -
tryApplyWritingDefaulting
public static <R> R tryApplyWritingDefaulting(AFile file, Object user, R defaultValue, Function<? super AWritableFile,R> logic) -
close
-