@Nonnull
  @ReturnsMutableCopy
  public static ByteArrayWrapper create (@Nonnull final NonBlockingByteArrayOutputStream aBAOS,
                                         final boolean bCopyNeeded)
  {
    return new ByteArrayWrapper (aBAOS.directGetBuffer (), 0, aBAOS.size (), bCopyNeeded);
  }
@ Nonnull @ ReturnsMutableCopy public static ByteArrayWrapper create ( @ Nonnull final NonBlockingByteArrayOutputStream aBAOS , final boolean bCopyNeeded ) { return new ByteArrayWrapper ( aBAOS . directGetBuffer ( ) , 0 , aBAOS . size ( ) , bCopyNeeded ) ; }
Wrap the content of a {@link NonBlockingByteArrayOutputStream}.

@param aBAOS
The output stream to be wrapped. May not be <code>null</code>.
@param bCopyNeeded
<code>true</code> to copy it (needed if the output stream will be
modified afterwards), <code>false</code> to reuse the data (if the
output stream will not be modified afterwards).
@return ByteArrayWrapper The created instance. Never <code>null</code>.
@since 9.2.1