Package com.saperion.operations.document
Class ReadContentStreamPart
- java.lang.Object
- 
- com.lexmark.saperion.remote.common.operations.AbstractOperation<T,SaBasicException,LegacyConnection>
- 
- com.saperion.operations.LegacyOperation<byte[]>
- 
- com.saperion.operations.document.ReadContentStreamPart
 
 
 
- 
- All Implemented Interfaces:
- com.lexmark.saperion.remote.common.operations.Operation<byte[],SaBasicException,LegacyConnection>,- java.io.Serializable
 
 public class ReadContentStreamPart extends LegacyOperation<byte[]> AnOperationthat reads the next n bytes from a remote stream attached to a session.- Author:
- jschwarz
- See Also:
- Serialized Form
 
- 
- 
Constructor SummaryConstructors Constructor Description ReadContentStreamPart(com.lexmark.saperion.remote.common.session.SessionDataKey streamKey, int numberOfBytesToRead)This creates a newoperationthat reads the given number of bytes from the stream the current session has stored with the given key.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]invoke()- 
Methods inherited from class com.saperion.operations.LegacyOperationbeforeInvoke, beforeInvoke, getClientToken, mapEcmException, mapException
 - 
Methods inherited from class com.lexmark.saperion.remote.common.operations.AbstractOperationafterInvoke, getResult, toArrayList, toCaseInsensitiveMap, toHashMap, toString
 
- 
 
- 
- 
- 
Constructor Detail- 
ReadContentStreamPartpublic ReadContentStreamPart(com.lexmark.saperion.remote.common.session.SessionDataKey streamKey, int numberOfBytesToRead)This creates a newoperationthat reads the given number of bytes from the stream the current session has stored with the given key. LikeInputStream.read(byte[], int, int)it is possible for various reasons that a number of bytes will be read that is less than the given number. Theinvoke methodwill return a array with exactly the bytes read, so its length will be the number of bytes read.- Parameters:
- streamKey- The key with which the current session associates the stream to read from. Must not be null.
- numberOfBytesToRead- the number of bytes to read from the stream. Must be greater than 0.
 
 
- 
 - 
Method Detail- 
invokepublic byte[] invoke() throws SaBasicException- Throws:
- SaBasicException
 
 
- 
 
-