public interface WritableBITContainer extends WritableContainer<byte[]>
Modifier and Type | Method and Description |
---|---|
WritableBITContainer |
append(byte[] t)
Append the object to the end of the container.
|
default <T> WritableBITContainer |
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> WritableBITContainer |
appendWith(Serializer<T> serializer,
T object)
Add the provided object of type
T to the container, using the
provided Serializer to convert from bytes. |
default java.io.OutputStream |
asOutputStream(int type,
int bufferSize)
Get a view of this BIT container as an
OutputStream . |
WritableBITContainer |
prepend(byte[] t)
Prepend the object to the start of the container.
|
default <T> WritableBITContainer |
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> WritableBITContainer |
prependWith(Serializer<T> serializer,
T object)
Add the provided object of type
T to the container, using the
provided Serializer to convert from bytes. |
WritableBITContainer |
put(byte[] t)
Overwrite the container contents with the supplied object.
|
default <T> WritableBITContainer |
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> WritableBITContainer |
putWith(Serializer<T> serializer,
T object)
Put the provided object of type
T into the container, using the
provided Serializer to convert from bytes. |
default <T> WritableContainer<T> |
with(Serializer<T> serializer)
Return a container that wraps this container and allows objects of type
T to be written to it directly. |
default <T> WritableContainer<T> |
with(Serializer<T> serializer,
int chunkSize)
Return a container that wraps this container and allows objects of type
T to be written to it directly. |
WritableBITContainer put(byte[] t) throws CICSConditionException
EXEC CICS API commands:
EXEC CICS PUT CONTAINER
put
in interface WritableContainer<byte[]>
t
- object to putCICSConditionException
- If there's a problem in CICS
RespCodes:
WritableBITContainer append(byte[] t) throws CICSConditionException
EXEC CICS API commands:
EXEC CICS PUT CONTAINER
append
in interface WritableContainer<byte[]>
t
- object to appendCICSConditionException
- If there's a problem in CICS
RespCodes:
WritableBITContainer prepend(byte[] t) throws CICSConditionException
EXEC CICS API commands:
EXEC CICS PUT CONTAINER
prepend
in interface WritableContainer<byte[]>
t
- object to prependCICSConditionException
- If there's a problem in CICS
RespCodes:
default java.io.OutputStream asOutputStream(int type, int bufferSize)
OutputStream
. This stream is
internally buffered to write data to the CICS container in chunks of
bufferSize
bytes.type
- Defines the type of the put container request: REPLACE, APPEND or
PREPENDbufferSize
- How many bytes to buffer before writing to the containerOutputStream
default <T> WritableContainer<T> with(Serializer<T> serializer, int chunkSize)
T
to be written to it directly.
Objects 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 with(Serializer)
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 containerdefault <T> WritableContainer<T> with(Serializer<T> serializer)
T
to be written to it directly.
Objects 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
with(Serializer, int)
.
T
- The type that the Serializer
serializes bytes fromserializer
- The Serializer
used to write the object into the
bytes in the containerdefault <T> WritableBITContainer 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
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
putWith(Serializer, int, Object)
.
For information about EXEC CICS
API commands and associated
RespCode
s, see WritableContainer.put(Object)
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 containerjava.io.IOException
- If there is a problem serializing the dataCICSConditionException
- 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)
default <T> WritableBITContainer 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
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
putWith(Serializer, Object)
For information about EXEC CICS
API commands and associated
RespCode
s, see WritableContainer.put(Object)
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 containerjava.io.IOException
- If there is a problem serializing the dataCICSConditionException
- 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)
default <T> WritableBITContainer 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
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
appendWith(Serializer, int, Object)
.
For information about EXEC CICS
API commands and associated
RespCode
s, see WritableContainer.append(Object)
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 containerjava.io.IOException
- If there is a problem serializing the dataCICSConditionException
- 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)
default <T> WritableBITContainer 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
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
appendWith(Serializer, Object)
For information about EXEC CICS
API commands and associated
RespCode
s, see WritableContainer.append(Object)
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 containerjava.io.IOException
- If there is a problem serializing the dataCICSConditionException
- 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)
default <T> WritableBITContainer 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
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
prependWith(Serializer, Object)
For information about EXEC CICS
API commands and associated
RespCode
s, see WritableContainer.append(Object)
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 containerjava.io.IOException
- If there is a problem serializing the dataCICSConditionException
- 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)
default <T> WritableBITContainer 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
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
prependWith(Serializer, int, Object)
.
For information about EXEC CICS
API commands and associated
RespCode
s, see WritableContainer.append(Object)
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 containerjava.io.IOException
- If there is a problem serializing the dataCICSConditionException
- 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)