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)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
-
CheckedBinaryFileService
public CheckedBinaryFileService()
-
-
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
-