microsoft-azure-storage/src/com/microsoft/azure/storage/file/CloudFile.java
public void setStreamWriteSizeInBytes(final int streamWriteSizeInBytes) {
        if (streamWriteSizeInBytes > Constants.MAX_BLOCK_SIZE || streamWriteSizeInBytes < Constants.PAGE_SIZE) {
            throw new IllegalArgumentException("StreamWriteSizeInBytes");
        }

        this.streamWriteSizeInBytes = streamWriteSizeInBytes;
    }
public void setStreamWriteSizeInBytes(final int streamWriteSizeInBytes) {
        if (streamWriteSizeInBytes > Constants.MAX_BLOCK_SIZE || streamWriteSizeInBytes < Constants.PAGE_SIZE) {
            throw new IllegalArgumentException("StreamWriteSizeInBytes");
        }

        this.streamWriteSizeInBytes = streamWriteSizeInBytes;
    }
Sets the number of bytes to buffer when writing to a {@link FileOutputStream}.

@param streamWriteSizeInBytes
An <code>int</code> which represents the number of bytes to buffer while using a
{@link FileOutputStream} object, ranging from 512 bytes to 4 MB, inclusive.

@throws IllegalArgumentException
If <code>streamWriteSizeInBytes</code> is less than 512 bytes or greater than 4 MB.