Class BinaryFileService

java.lang.Object
io.datarouter.filesystem.raw.small.BinaryFileService

@Singleton public class BinaryFileService extends Object
  • Constructor Details

    • BinaryFileService

      public BinaryFileService()
  • Method Details

    • writeBytes

      public void writeBytes(Path fullPath, byte[] bytes)
    • writeBytes

      public void writeBytes(Path fullPath, InputStream inputStream)
    • length

      public Optional<Long> length(Path fullPath)
    • readBytes

      public Optional<byte[]> readBytes(Path fullPath)
    • readBytes

      public Optional<byte[]> readBytes(Path fullPath, long offset, int length)
    • readInputStream

      public InputStream readInputStream(Path fullPath)
    • scanChunks

      public io.datarouter.scanner.Scanner<byte[]> scanChunks(Path fullPath, io.datarouter.util.tuple.Range<Long> range, ExecutorService exec, int numThreads, int chunkSize)