mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
DM-DM tidying:
- Added NodeCrawlerFactory interface and standard implementation - Removed test actions from the context files - ensure that the temporary store node is deleted when the transfer ends - Added missing error messages from the transfer properties file - Inserted abstract NodeFinder and NodeFilter to clean those interfaces up a little git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@19213 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -22,9 +22,6 @@ package org.alfresco.repo.transfer;
|
||||
import java.io.IOException;
|
||||
import java.io.InputStream;
|
||||
import java.io.OutputStream;
|
||||
import java.nio.channels.Channels;
|
||||
import java.nio.channels.ReadableByteChannel;
|
||||
import java.nio.channels.WritableByteChannel;
|
||||
|
||||
import org.alfresco.service.cmr.repository.ContentData;
|
||||
import org.alfresco.service.cmr.repository.ContentService;
|
||||
@@ -95,16 +92,8 @@ public class ContentDataPart extends PartBase
|
||||
{
|
||||
|
||||
// Get the content from the content URL and write it to out
|
||||
|
||||
// Can't use the following code since it closes 'out', which needs to remain open.
|
||||
// AbstractContentReader.
|
||||
// contentService.getRawReader(data.getContentUrl()).getContent(out);
|
||||
|
||||
InputStream is = contentService.getRawReader(data.getContentUrl()).getContentInputStream();
|
||||
|
||||
// ReadableByteChannel rbc = Channels.newChannel(is);
|
||||
// WritableByteChannel wbc = Channels.newChannel(out);
|
||||
|
||||
try
|
||||
{
|
||||
byte[] tmp = new byte[4096];
|
||||
|
Reference in New Issue
Block a user