Class BinaryFileService
java.lang.Object
io.datarouter.filesystem.raw.small.BinaryFileService
@Singleton
public class BinaryFileService
extends java.lang.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 java.util.Optional<java.lang.Long>length(java.nio.file.Path fullPath)byte[]readBytes(java.nio.file.Path fullPath)byte[]readBytes(java.nio.file.Path fullPath, long offset, int length)io.datarouter.scanner.Scanner<byte[]>scanChunks(java.nio.file.Path fullPath, java.util.concurrent.ExecutorService exec, int numThreads, int chunkSize)voidwriteBytes(java.nio.file.Path fullPath, byte[] contents)voidwriteBytes(java.nio.file.Path fullPath, java.io.InputStream inputStream)voidwriteBytes(java.nio.file.Path fullPath, java.util.Iterator<byte[]> chunks)
-
Constructor Details
-
BinaryFileService
public BinaryFileService()
-
-
Method Details
-
writeBytes
public void writeBytes(java.nio.file.Path fullPath, byte[] contents) -
writeBytes
public void writeBytes(java.nio.file.Path fullPath, java.util.Iterator<byte[]> chunks) -
writeBytes
public void writeBytes(java.nio.file.Path fullPath, java.io.InputStream inputStream) -
length
public java.util.Optional<java.lang.Long> length(java.nio.file.Path fullPath) -
readBytes
public byte[] readBytes(java.nio.file.Path fullPath) -
readBytes
public byte[] readBytes(java.nio.file.Path fullPath, long offset, int length) -
scanChunks
public io.datarouter.scanner.Scanner<byte[]> scanChunks(java.nio.file.Path fullPath, java.util.concurrent.ExecutorService exec, int numThreads, int chunkSize)
-