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 class  BinaryFileService.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)  
    void writeBytes​(java.nio.file.Path fullPath, byte[] contents)  
    void writeBytes​(java.nio.file.Path fullPath, java.io.InputStream inputStream)  
    void writeBytes​(java.nio.file.Path fullPath, java.util.Iterator<byte[]> chunks)  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • 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)