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[] contents)
    • writeBytes

      public void writeBytes​(Path fullPath, io.datarouter.scanner.Scanner<byte[]> chunks)
    • writeBytes

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

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

      public byte[] readBytes​(Path fullPath)
    • readBytes

      public byte[] readBytes​(Path fullPath, long offset, int length)
    • scanChunks

      public io.datarouter.scanner.Scanner<byte[]> scanChunks​(Path fullPath, ExecutorService exec, int numThreads, int chunkSize)