All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.azure.storage.blob.models.BlobSeekableByteChannelReadResult Maven / Gradle / Ivy

There is a newer version: 12.29.0
Show newest version
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

package com.azure.storage.blob.models;

import java.nio.channels.SeekableByteChannel;

/**
 * Contains the results of opening a {@link SeekableByteChannel} to read from a blob.
 */
public final class BlobSeekableByteChannelReadResult {
    private final SeekableByteChannel channel;
    private final BlobProperties properties;

    /**
     * @param channel Channel to read the target blob.
     * @param properties Blob properties of the target blob.
     */
    public BlobSeekableByteChannelReadResult(SeekableByteChannel channel, BlobProperties properties) {
        this.channel = channel;
        this.properties = properties;
    }

    /**
     * @return Channel to read the target blob.
     */
    public SeekableByteChannel getChannel() {
        return channel;
    }

    /**
     * @return Blob properties of the target blob.
     */
    public BlobProperties getProperties() {
        return properties;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy