Class BinaryFileService.CheckedBinaryFileService

java.lang.Object
io.datarouter.filesystem.raw.small.BinaryFileService.CheckedBinaryFileService
Enclosing class:
BinaryFileService

@Singleton
public static class BinaryFileService.CheckedBinaryFileService
extends java.lang.Object
  • Constructor Summary

    Constructors 
    Constructor Description
    CheckedBinaryFileService()  
  • 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)  
    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) throws java.io.IOException
      Throws:
      java.io.IOException
    • writeBytes

      public void writeBytes​(java.nio.file.Path fullPath, java.util.Iterator<byte[]> chunks) throws java.io.IOException
      Throws:
      java.io.IOException
    • writeBytes

      public void writeBytes​(java.nio.file.Path fullPath, java.io.InputStream inputStream) throws java.io.IOException
      Throws:
      java.io.IOException
    • length

      public java.util.Optional<java.lang.Long> length​(java.nio.file.Path fullPath) throws java.io.IOException
      Throws:
      java.io.IOException
    • readBytes

      public byte[] readBytes​(java.nio.file.Path fullPath) throws java.io.IOException
      Throws:
      java.io.IOException
    • readBytes

      public byte[] readBytes​(java.nio.file.Path fullPath, long offset, int length) throws java.io.IOException
      Throws:
      java.io.IOException