public class ApexObjectStreamHelper extends Object
| Modifier and Type | Field and Description |
|---|---|
protected static org.slf4j.Logger |
LOGGER |
| Modifier | Constructor and Description |
|---|---|
protected |
ApexObjectStreamHelper() |
| Modifier and Type | Method and Description |
|---|---|
static ObjectInput |
wrapToHandleInputStream(ObjectInput objectInput) |
static long |
writeInputStream(ObjectOutput objectOutput,
InputStream inputStream)
Default chunk size is 1024
|
static long |
writeInputStream(ObjectOutput objectOutput,
InputStream inputStream,
int chunkSize)
Default chunk size is 1024
|
public static long writeInputStream(ObjectOutput objectOutput, InputStream inputStream) throws IOException
inputStream - objectOutput - IOExceptionpublic static long writeInputStream(ObjectOutput objectOutput, InputStream inputStream, int chunkSize) throws IOException
objectOutput - the ObjectOutput were the data from the inputStream are written. These bytes are send through a stream
of ByteArrayMarkerinputStream - the inputStream from which bytes are read. We consume it until EOF is encountered, however it is not
automatically closedchunkSize - the size of the chunks in which the inputStream is fragmentedIOExceptionpublic static ObjectInput wrapToHandleInputStream(ObjectInput objectInput)
objectInput - Copyright © 2014–2017 Pivotal Software, Inc.. All rights reserved.