public class GetBlobResult extends Object
BlobContract.getBlob(String, String, GetBlobOptions).
See the Get Blob documentation on MSDN for details of the underlying Blob Service REST API operation.
| Constructor and Description |
|---|
GetBlobResult() |
| Modifier and Type | Method and Description |
|---|---|
InputStream |
getContentStream()
Gets the content of the blob.
|
HashMap<String,String> |
getMetadata()
Gets the user-defined blob metadata as a map of name and value pairs.
|
BlobProperties |
getProperties()
Gets the standard HTTP properties and system properties of the blob.
|
void |
setContentStream(InputStream contentStream)
Reserved for internal use.
|
void |
setMetadata(HashMap<String,String> metadata)
Reserved for internal use.
|
void |
setProperties(BlobProperties properties)
Reserved for internal use.
|
public InputStream getContentStream()
InputStream instance containing the content of the
blob.public void setContentStream(InputStream contentStream)
This method is invoked by the API to set the value from the Blob Service REST API operation response returned by the server.
contentStream - An InputStream instance containing the content of the
blob.public BlobProperties getProperties()
BlobProperties instance containing the properties of
the blob.public void setProperties(BlobProperties properties)
This method is invoked by the API to set the value from the Blob Service REST API operation response returned by the server.
properties - A BlobProperties instance containing the properties of
the blob.public HashMap<String,String> getMetadata()
public void setMetadata(HashMap<String,String> metadata)
x-ms-meta-name:value headers returned in the
response.
This method is invoked by the API to set the value from the Blob Service REST API operation response returned by the server.
/**
* 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.
*/