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:
Britt Park
2006-07-03 16:36:31 +00:00
parent 92a7348a43
commit 37843668a4
9 changed files with 163 additions and 6 deletions

View File

@@ -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.