mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-24 17:32:48 +00:00
A new flavor of createFile. Slightly slower. Significantly safer.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/WCM-DEV2/root@3277 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -86,6 +86,15 @@ public interface AVMService
|
||||
*/
|
||||
public OutputStream createFile(String path, String name);
|
||||
|
||||
/**
|
||||
* Create a new File. Guarantees that the entire contents of the
|
||||
* input stream will be loaded atomically.
|
||||
* @param path The path to the parent directory.
|
||||
* @param name The name for the new file.
|
||||
* @param in An input stream with data for the file.
|
||||
*/
|
||||
public void createFile(String path, String name, InputStream in);
|
||||
|
||||
/**
|
||||
* Create a new directory.
|
||||
* @param path The simple absolute path to the parent.
|
||||
|
Reference in New Issue
Block a user