public final class ThresholdOutputStreamFactory extends TempStoreOutputStreamFactory
ThresholdOutputStream
objects.Modifier and Type | Method and Description |
---|---|
static ThresholdOutputStreamFactory |
newInstance(File tempDir,
int memoryThreshold,
long maxContentSize,
boolean encrypt)
Deprecated.
Creates a new factory.
|
ThresholdOutputStream |
newOutputStream()
Deprecated.
Creates a new
ThresholdOutputStream object. |
getMaxContentSize, getMemoryThreshold, getTempDir, isEncrypted, newInstance
public static ThresholdOutputStreamFactory newInstance(File tempDir, int memoryThreshold, long maxContentSize, boolean encrypt)
ThresholdOutputStream
objects.tempDir
- temp directory or null
for the default temp directorymemoryThreshold
- memory threshold in bytesmaxContentSize
- max size of the content in bytes (-1 to disable the check)encrypt
- indicates if temporary files must be encryptedpublic ThresholdOutputStream newOutputStream()
ThresholdOutputStream
object.newOutputStream
in class TempStoreOutputStreamFactory
Copyright © 2009-2015 The Apache Software Foundation. All Rights Reserved.