| Package | Description |
|---|---|
| com.microsoft.azure.storage.core |
FOR INTERNAL USE ONLY.
|
| Modifier and Type | Method and Description |
|---|---|
static StreamMd5AndLength |
Utility.analyzeStream(InputStream sourceStream,
long writeLength,
long abandonLength,
boolean rewindSourceStream,
boolean calculateMD5)
Determines the size of an input stream, and optionally calculates the MD5 hash for the stream.
|
static StreamMd5AndLength |
Utility.writeToOutputStream(InputStream sourceStream,
OutputStream outStream,
long writeLength,
boolean rewindSourceStream,
boolean calculateMD5,
OperationContext opContext,
RequestOptions options)
Reads data from an input stream and writes it to an output stream, calculates the length of the data written, and
optionally calculates the MD5 hash for the data.
|
static StreamMd5AndLength |
Utility.writeToOutputStream(InputStream sourceStream,
OutputStream outStream,
long writeLength,
boolean rewindSourceStream,
boolean calculateMD5,
OperationContext opContext,
RequestOptions options,
StorageRequest<?,?,Integer> request)
Reads data from an input stream and writes it to an output stream, calculates the length of the data written, and
optionally calculates the MD5 hash for the data.
|
| Modifier and Type | Method and Description |
|---|---|
void |
StorageRequest.validateStreamWrite(StreamMd5AndLength descriptor)
Validate the written stream length when length is provided.
|
/**
* Copyright Microsoft Corporation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/