com.crystaldecisions.sdk.occa.infostore
Interface IStreamingUploadFile

All Superinterfaces:
IFile

public interface IStreamingUploadFile
extends IFile


Method Summary
 boolean putContent(byte[] stream)
          Upload a chunk of the file as a byte array.
 boolean putContent(byte[] stream, int offset, int length)
           
 long putContent(java.io.InputStream stream)
           
 
Methods inherited from interface com.crystaldecisions.sdk.occa.infostore.IFile
abort, commit, getActualName, getDestRelativePath, getName, getSize
 

Method Detail

putContent

boolean putContent(byte[] stream)
                   throws SDKException
Upload a chunk of the file as a byte array.

Parameters:
stream - A byte[] array containing a chunk of the file's data.
Returns:
true if succeeded
Throws:
SDKException - This is thrown if the process is unsuccessful.

putContent

boolean putContent(byte[] stream,
                   int offset,
                   int length)
                   throws SDKException
Throws:
SDKException

putContent

long putContent(java.io.InputStream stream)
                throws SDKException
Throws:
SDKException