public final class Blobs extends Object
Modifier and Type | Method and Description |
---|---|
static MemoryBlob |
createMemoryBlob()
Create a
MemoryBlob instance. |
static OverflowableBlob |
createOverflowableBlob(int threshold,
String tempPrefix,
String tempSuffix,
File tempDirectory)
Create an
OverflowableBlob that overflows to a temporary file. |
static OverflowableBlob |
createOverflowableBlob(int threshold,
WritableBlobFactory overflowBlobFactory)
Create an
OverflowableBlob . |
public static MemoryBlob createMemoryBlob()
MemoryBlob
instance.public static OverflowableBlob createOverflowableBlob(int threshold, WritableBlobFactory overflowBlobFactory)
OverflowableBlob
.threshold
- the threshold above which data is transferred to the overflow bloboverflowBlobFactory
- the factory that will be used to create the overflow blobpublic static OverflowableBlob createOverflowableBlob(int threshold, String tempPrefix, String tempSuffix, File tempDirectory)
OverflowableBlob
that overflows to a temporary file. Temporary files are
created using File.createTempFile(String, String, File)
.threshold
- the overflow thresholdtempPrefix
- the prefix to be used in generating the name of the temporary filetempSuffix
- the suffix to be used in generating the name of the temporary filetempDirectory
- the directory in which the temporary file is to be created, or null
if the default temporary directory is to be usedCopyright © The Apache Software Foundation. All Rights Reserved.