Class BinaryFileService
java.lang.Object
io.datarouter.filesystem.raw.small.BinaryFileService
@Singleton public class BinaryFileService extends Object
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classBinaryFileService.CheckedBinaryFileService -
Constructor Summary
Constructors Constructor Description BinaryFileService() -
Method Summary
Modifier and Type Method Description Optional<Long>length(Path fullPath)byte[]readBytes(Path fullPath)byte[]readBytes(Path fullPath, long offset, int length)io.datarouter.scanner.Scanner<byte[]>scanChunks(Path fullPath, ExecutorService exec, int numThreads, int chunkSize)voidwriteBytes(Path fullPath, byte[] contents)voidwriteBytes(Path fullPath, io.datarouter.scanner.Scanner<byte[]> chunks)voidwriteBytes(Path fullPath, InputStream inputStream)
-
Constructor Details
-
BinaryFileService
public BinaryFileService()
-
-
Method Details
-
writeBytes
-
writeBytes
-
writeBytes
-
length
-
readBytes
-
readBytes
-
scanChunks
public io.datarouter.scanner.Scanner<byte[]> scanChunks(Path fullPath, ExecutorService exec, int numThreads, int chunkSize)
-