Class RemotedHttpServletResponse.ByteArrayWrapper

java.lang.Object
net.shibboleth.sp.messaging.RemotedHttpServletResponse.ByteArrayWrapper
Enclosing class:
RemotedHttpServletResponse

private static final class RemotedHttpServletResponse.ByteArrayWrapper extends Object
Wrapper allowing use of containers of arrays.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private final byte[]
    Wrapped array.
    private int
    Current write position.
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    private
    ByteArrayWrapper(int size)
    Constructor.
  • Method Summary

    Modifier and Type
    Method
    Description
    private byte[]
    Gets the buffer.
    private int
    Gets the offset.
    private boolean
    write(int b)
    Writes a byte to the buffer.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • offset

      private int offset
      Current write position.
    • buffer

      @Nonnull private final byte[] buffer
      Wrapped 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