Package org.silverpeas.cmis.walkers
Class ContentStreamLoader
- java.lang.Object
-
- org.silverpeas.cmis.walkers.ContentStreamLoader
-
public class ContentStreamLoader extends Object
-
-
Constructor Summary
Constructors Constructor Description ContentStreamLoader(CmisProperties properties)
Constructs a new loader of a content stream for the object defined by the specified CMIS properties.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
deleteFile()
Deletes the file into which a content has been loaded from a stream.CmisProperties
getProperties()
Gets the CMIS properties of the object for which this loaded has been created.File
loadFile(org.apache.chemistry.opencmis.commons.data.ContentStream contentStream)
Loads the specified stream for a content and stores it into a file.
-
-
-
Constructor Detail
-
ContentStreamLoader
public ContentStreamLoader(CmisProperties properties)
Constructs a new loader of a content stream for the object defined by the specified CMIS properties.- Parameters:
properties
- CMIS properties of the object for which content streams will be loaded.
-
-
Method Detail
-
loadFile
public File loadFile(org.apache.chemistry.opencmis.commons.data.ContentStream contentStream)
Loads the specified stream for a content and stores it into a file. The CMIS properties will be updated with file information.- Parameters:
contentStream
- a stream on a content.- Returns:
- the file in which the content has been stored.
-
deleteFile
public void deleteFile()
Deletes the file into which a content has been loaded from a stream.
-
getProperties
public CmisProperties getProperties()
Gets the CMIS properties of the object for which this loaded has been created.- Returns:
- the CMIS properties of the object related by this loader.
-
-