public final class ThresholdOutputStreamFactory extends Object
ThresholdOutputStream objects.| Modifier and Type | Method and Description |
|---|---|
long |
getMaxContentSize()
Returns the max content size in bytes.
|
int |
getMemoryThreshold()
Returns the memory threshold in bytes.
|
File |
getTempDir()
Returns the temp directory or
null for the default temp
directory. |
boolean |
isEncrypted()
Indicates if temporary files are encrypted.
|
static ThresholdOutputStreamFactory |
newInstance(File tempDir,
int memoryThreshold,
long maxContentSize,
boolean encrypt)
Creates a new factory.
|
ThresholdOutputStream |
newOutputStream()
Creates a new
ThresholdOutputStream object. |
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.public File getTempDir()
null for the default temp
directory.public int getMemoryThreshold()
public long getMaxContentSize()
public boolean isEncrypted()
Copyright © 2009-2014 The Apache Software Foundation. All Rights Reserved.