Package net.shibboleth.sp.messaging
Class RemotedHttpServletResponse.ByteArrayWrapper
java.lang.Object
net.shibboleth.sp.messaging.RemotedHttpServletResponse.ByteArrayWrapper
- Enclosing class:
- RemotedHttpServletResponse
Wrapper allowing use of containers of arrays.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
offset
private int offsetCurrent write position. -
buffer
@Nonnull private final byte[] bufferWrapped array.
-
-
Constructor Details
-
ByteArrayWrapper
private ByteArrayWrapper(int size) Constructor.- Parameters:
size- buffer size
-
-
Method Details
-
getBuffer
@Nonnull private byte[] getBuffer()Gets the buffer.- Returns:
- the buffer
-
getOffset
private int getOffset()Gets the offset.- Returns:
- the offset
-
write
private boolean write(int b) Writes a byte to the buffer.- Parameters:
b- byte to write- Returns:
- true iff the buffer was large enough to accommodate the byte
-