Class BinaryFileService.CheckedBinaryFileService
java.lang.Object
io.datarouter.filesystem.raw.small.BinaryFileService.CheckedBinaryFileService
- Enclosing class:
- BinaryFileService
@Singleton public static class BinaryFileService.CheckedBinaryFileService extends Object
-
Constructor Summary
Constructors Constructor Description CheckedBinaryFileService() -
Method Summary
Modifier and Type Method Description Optional<Long>length(Path fullPath)byte[]readBytes(Path fullPath)byte[]readBytes(Path fullPath, long offset, int length)voidwriteBytes(Path fullPath, byte[] contents)voidwriteBytes(Path fullPath, io.datarouter.scanner.Scanner<byte[]> chunks)voidwriteBytes(Path fullPath, InputStream inputStream)
-
Constructor Details
-
CheckedBinaryFileService
public CheckedBinaryFileService()
-
-
Method Details
-
writeBytes
- Throws:
IOException
-
writeBytes
public void writeBytes(Path fullPath, io.datarouter.scanner.Scanner<byte[]> chunks) throws IOException- Throws:
IOException
-
writeBytes
- Throws:
IOException
-
length
- Throws:
IOException
-
readBytes
- Throws:
IOException
-
readBytes
- Throws:
IOException
-