Interface BinaryFactory
- All Known Implementing Classes:
FileBackedBinaryFactory
public interface BinaryFactory
-
Method Summary
Modifier and TypeMethodDescriptionloadBinary
(com.google.common.hash.HashCode hash) newBinary
(InputStream source, String fileName) create a binary from an InputStreamnewBinary
(Function<OutputStream, Void> func, String fileName) write data to a OutputStream
-
Method Details
-
newBinary
write data to a OutputStream- Parameters:
func
- function which fills data into the OutputStreamfileName
- file name is required for optimal mime-type detection- Throws:
IOException
-
newBinary
create a binary from an InputStream- Parameters:
fileName
- file name is required for optimal mime-type detection- Throws:
IOException
-
newBinary
- Parameters:
fileName
- file name is required for optimal mime-type detection- Throws:
IOException
-
newBinary
- Parameters:
fileName
- file name is required for optimal mime-type detection- Throws:
IOException
-
loadBinary
- Throws:
IOException
-