Interface BinaryFactory
- All Known Implementing Classes:
- FileBackedBinaryFactory
public interface BinaryFactory
- 
Method SummaryModifier 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- 
newBinarywrite data to a OutputStream- Parameters:
- func- function which fills data into the OutputStream
- fileName- file name is required for optimal mime-type detection
- Throws:
- IOException
 
- 
newBinarycreate 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
 
 
-