mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-24 17:32:48 +00:00
More cleanup, fixing, and general futzing. A checkpoint.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/WCM-DEV2/root@2920 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -59,7 +59,6 @@ public class FileContent
|
||||
public FileContent(ContentBean data)
|
||||
{
|
||||
fData = data;
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -69,6 +68,7 @@ public class FileContent
|
||||
public FileContent(SuperRepository superRepo)
|
||||
{
|
||||
fData = new ContentBeanImpl(superRepo.issueContentID());
|
||||
fData.setRefCount(1);
|
||||
BufferedOutputStream out = new BufferedOutputStream(getOutputStream(superRepo));
|
||||
// Make an empty file.
|
||||
try
|
||||
@@ -90,6 +90,7 @@ public class FileContent
|
||||
public FileContent(FileContent other, SuperRepository superRepo)
|
||||
{
|
||||
fData = new ContentBeanImpl(superRepo.issueContentID());
|
||||
fData.setRefCount(1);
|
||||
// Copy the contents from other to this.
|
||||
BufferedInputStream in = new BufferedInputStream(other.getInputStream(superRepo));
|
||||
BufferedOutputStream out = new BufferedOutputStream(this.getOutputStream(superRepo));
|
||||
|
Reference in New Issue
Block a user