public class TempStoreOutputStreamFactory extends Object
TempStoreOutputStream
objects.Modifier | Constructor and Description |
---|---|
protected |
TempStoreOutputStreamFactory(CmisServiceFactory factory,
String repositoryId) |
protected |
TempStoreOutputStreamFactory(File tempDir,
int memoryThreshold,
long maxContentSize,
boolean encrypt) |
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 TempStoreOutputStreamFactory |
newInstance(CmisServiceFactory factory,
String repositoryId)
Creates a new factory.
|
static TempStoreOutputStreamFactory |
newInstance(File tempDir,
int memoryThreshold,
long maxContentSize,
boolean encrypt)
Creates a new factory.
|
TempStoreOutputStream |
newOutputStream()
Creates a new
TempStoreOutputStream object. |
protected TempStoreOutputStreamFactory(CmisServiceFactory factory, String repositoryId)
protected TempStoreOutputStreamFactory(File tempDir, int memoryThreshold, long maxContentSize, boolean encrypt)
public static TempStoreOutputStreamFactory newInstance(CmisServiceFactory factory, String repositoryId)
TempStoreOutputStream
objects.factory
- the CmisService object factoryrepositoryId
- the repository IDpublic static TempStoreOutputStreamFactory newInstance(File tempDir, int memoryThreshold, long maxContentSize, boolean encrypt)
TempStoreOutputStream
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 TempStoreOutputStream newOutputStream()
TempStoreOutputStream
object.public File getTempDir()
null
for the default temp
directory.public int getMemoryThreshold()
public long getMaxContentSize()
public boolean isEncrypted()
Copyright © 2009-2015 The Apache Software Foundation. All Rights Reserved.