ByteSourceUtil.bytes

Returns a {@code ByteSource} instance representing the specified byte source argument. If the argument <em>cannot</em> be easily converted to bytes (as is indicated by the {@link #isCompatible(Object)} JavaDoc), this method will throw an {@link IllegalArgumentException}.

@param source the byte-backed instance that should be represented as a {@code ByteSource} instance. @return a {@code ByteSource} instance representing the specified byte source argument. @throws IllegalArgumentException if the argument <em>cannot</em> be easily converted to bytes (as indicated by the {@link #isCompatible(Object)} JavaDoc)

Meta