public interface BITContainer extends ReadableBITContainer, WritableBITContainer
Modifier and Type | Method and Description |
---|---|
BITContainer |
append(byte[] t)
Append the object to the end of the container.
|
default <T> BITContainer |
appendWith(Serializer<T> serializer,
int chunkSize,
T object)
Put the provided object of type
T into the container, using the
provided Serializer to convert from bytes. |
default <T> BITContainer |
appendWith(Serializer<T> serializer,
T object)
Add the provided object of type
T to the container, using the
provided Serializer to convert from bytes. |
BITContainer |
prepend(byte[] t)
Prepend the object to the start of the container.
|
default <T> BITContainer |
prependWith(Serializer<T> serializer,
int chunkSize,
T object)
Put the provided object of type
T into the container, using the
provided Serializer to convert from bytes. |
default <T> BITContainer |
prependWith(Serializer<T> serializer,
T object)
Add the provided object of type
T to the container, using the
provided Serializer to convert from bytes. |
BITContainer |
put(byte[] t)
Overwrite the container contents with the supplied object.
|
default <T> BITContainer |
putWith(Serializer<T> serializer,
int chunkSize,
T object)
Put the provided object of type
T into the container, using the
provided Serializer to convert from bytes. |
default <T> BITContainer |
putWith(Serializer<T> serializer,
T object)
Put the provided object of type
T into the container, using the
provided Serializer to convert from bytes. |
asInputStream, get, getWith, getWith, read, read, with, with
asOutputStream, with, with
BITContainer append(byte[] t) throws CICSConditionException
EXEC CICS API commands:
EXEC CICS PUT CONTAINER
append
in interface WritableBITContainer
append
in interface WritableContainer<byte[]>
t
- object to appendCICSConditionException
- If there's a problem in CICS
RespCodes:
BITContainer prepend(byte[] t) throws CICSConditionException
EXEC CICS API commands:
EXEC CICS PUT CONTAINER
prepend
in interface WritableBITContainer
prepend
in interface WritableContainer<byte[]>
t
- object to prependCICSConditionException
- If there's a problem in CICS
RespCodes:
BITContainer put(byte[] t) throws CICSConditionException
EXEC CICS API commands:
EXEC CICS PUT CONTAINER
put
in interface WritableBITContainer
put
in interface WritableContainer<byte[]>
t
- object to putCICSConditionException
- If there's a problem in CICS
RespCodes:
default <T> BITContainer appendWith(Serializer<T> serializer, T object) throws CICSConditionException, java.io.IOException
T
to the container, using the
provided Serializer
to convert from bytes. This method will append to
any existing container contents. This method effectively calls
WritableBITContainer.with(Serializer)
followed by
WritableContainer.append(Object)
The object will be serialized into the wrapped BIT container using the
supplied Serializer
. Some Serializer
s are available using
static methods on the Serializers
class, or can be custom-written.
This implementation will write all data to the underlying CICS container at
once. For an implementation that writes the data in chunks, see
WritableBITContainer.appendWith(Serializer, int, Object)
.
For information about EXEC CICS
API commands and associated
RespCode
s, see WritableContainer.append(Object)
appendWith
in interface WritableBITContainer
T
- The type that the Serializer
serializes bytes fromserializer
- The Serializer
used to write the object into the
bytes in the containerobject
- The object to write to the containerCICSConditionException
- if there is a problem writing the data to the
CICS container.
For information about EXEC CICS
API commands and
associated RespCode
s, see
WritableContainer.append(Object)
java.io.IOException
- If there is a problem serializing the datadefault <T> BITContainer appendWith(Serializer<T> serializer, int chunkSize, T object) throws CICSConditionException, java.io.IOException
T
into the container, using the
provided Serializer
to convert from bytes. This method will append to
any existing container contents. This method effectively calls
WritableBITContainer.with(Serializer, int)
followed by
WritableContainer.append(Object)
The object will be serialized into the wrapped BIT container using the
supplied Serializer
. Some Serializer
s are available using
static methods on the Serializers
class, or can be custom-written.
This implementation will write data to the underlying CICS container in
chunks of chunkSize
. For an implementation that writes all data to
the container at once, see
WritableBITContainer.appendWith(Serializer, Object)
For information about EXEC CICS
API commands and associated
RespCode
s, see WritableContainer.append(Object)
appendWith
in interface WritableBITContainer
T
- The type that the Serializer
serializes bytes fromserializer
- The Serializer
used to write the object into the
bytes in the containerchunkSize
- How many bytes buffer before writing to the CICS containerobject
- The object to write to the containerCICSConditionException
- if there is a problem writing the data to the
CICS container.
For information about EXEC CICS
API commands and
associated RespCode
s, see
WritableContainer.append(Object)
java.io.IOException
- If there is a problem serializing the datadefault <T> BITContainer prependWith(Serializer<T> serializer, T object) throws CICSConditionException, java.io.IOException
T
to the container, using the
provided Serializer
to convert from bytes. This method will prepend
to any existing container contents. This method effectively calls
WritableBITContainer.with(Serializer)
followed by
WritableContainer.append(Object)
The object will be serialized into the wrapped BIT container using the
supplied Serializer
. Some Serializer
s are available using
static methods on the Serializers
class, or can be custom-written.
This implementation will write all data to the underlying CICS container at
once. For an implementation that writes the data in chunks, see
WritableBITContainer.prependWith(Serializer, int, Object)
.
For information about EXEC CICS
API commands and associated
RespCode
s, see WritableContainer.append(Object)
prependWith
in interface WritableBITContainer
T
- The type that the Serializer
serializes bytes fromserializer
- The Serializer
used to write the object into the
bytes in the containerobject
- The object to write to the containerCICSConditionException
- if there is a problem writing the data to the
CICS container.
For information about EXEC CICS
API commands and
associated RespCode
s, see
WritableContainer.append(Object)
java.io.IOException
- If there is a problem serializing the datadefault <T> BITContainer prependWith(Serializer<T> serializer, int chunkSize, T object) throws CICSConditionException, java.io.IOException
T
into the container, using the
provided Serializer
to convert from bytes. This method will prepend
to any existing container contents. This method effectively calls
WritableBITContainer.with(Serializer, int)
followed by
WritableContainer.append(Object)
The object will be serialized into the wrapped BIT container using the
supplied Serializer
. Some Serializer
s are available using
static methods on the Serializers
class, or can be custom-written.
This implementation will write data to the underlying CICS container in
chunks of chunkSize
. For an implementation that writes all data to
the container at once, see
WritableBITContainer.prependWith(Serializer, Object)
For information about EXEC CICS
API commands and associated
RespCode
s, see WritableContainer.append(Object)
prependWith
in interface WritableBITContainer
T
- The type that the Serializer
serializes bytes fromserializer
- The Serializer
used to write the object into the
bytes in the containerchunkSize
- How many bytes buffer before writing to the CICS containerobject
- The object to write to the containerCICSConditionException
- if there is a problem writing the data to the
CICS container.
For information about EXEC CICS
API commands and
associated RespCode
s, see
WritableContainer.append(Object)
java.io.IOException
- If there is a problem serializing the datadefault <T> BITContainer putWith(Serializer<T> serializer, T object) throws CICSConditionException, java.io.IOException
T
into the container, using the
provided Serializer
to convert from bytes. This method will overwrite
any existing container contents. This method effectively calls
WritableBITContainer.with(Serializer)
followed by WritableContainer.put(Object)
The object will be serialized into the wrapped BIT container using the
supplied Serializer
. Some Serializer
s are available using
static methods on the Serializers
class, or can be custom-written.
This implementation will write all data to the underlying CICS container at
once. For an implementation that writes the data in chunks, see
WritableBITContainer.putWith(Serializer, int, Object)
.
For information about EXEC CICS
API commands and associated
RespCode
s, see WritableContainer.put(Object)
putWith
in interface WritableBITContainer
T
- The type that the Serializer
serializes bytes fromserializer
- The Serializer
used to write the object into the
bytes in the containerobject
- The object to write to the containerCICSConditionException
- if there is a problem writing the data to the
CICS container.
For information about EXEC CICS
API commands and
associated RespCode
s, see
WritableContainer.put(Object)
java.io.IOException
- If there is a problem serializing the datadefault <T> BITContainer putWith(Serializer<T> serializer, int chunkSize, T object) throws CICSConditionException, java.io.IOException
T
into the container, using the
provided Serializer
to convert from bytes. This method will overwrite
any existing container contents. This method effectively calls
WritableBITContainer.with(Serializer, int)
followed by
WritableContainer.put(Object)
The object will be serialized into the wrapped BIT container using the
supplied Serializer
. Some Serializer
s are available using
static methods on the Serializers
class, or can be custom-written.
This implementation will write data to the underlying CICS container in
chunks of chunkSize
. For an implementation that writes all data to
the container at once, see
WritableBITContainer.putWith(Serializer, Object)
For information about EXEC CICS
API commands and associated
RespCode
s, see WritableContainer.put(Object)
putWith
in interface WritableBITContainer
T
- The type that the Serializer
serializes bytes fromserializer
- The Serializer
used to write the object into the
bytes in the containerchunkSize
- How many bytes buffer before writing to the CICS containerobject
- The object to write to the containerCICSConditionException
- if there is a problem writing the data to the
CICS container.
For information about EXEC CICS
API commands and
associated RespCode
s, see
WritableContainer.put(Object)
java.io.IOException
- If there is a problem serializing the data