Class AzureBlobContainer

    • Field Detail

      • DEFAULT_MINIMUM_READ_SIZE_IN_BYTES

        public static final int DEFAULT_MINIMUM_READ_SIZE_IN_BYTES
        The default minimum read size, in bytes, for a BlobInputStream or FileInputStream.
        See Also:
        Constant Field Values
    • Method Detail

      • blobExists

        public boolean blobExists​(java.lang.String blobName)
      • readBlob

        public java.io.InputStream readBlob​(java.lang.String blobName)
                                     throws java.io.IOException
        Throws:
        java.io.IOException
      • readBlob

        public java.io.InputStream readBlob​(java.lang.String blobName,
                                            long position,
                                            long length)
                                     throws java.io.IOException
        Throws:
        java.io.IOException
      • readBlobPreferredLength

        public long readBlobPreferredLength()
      • writeBlob

        public void writeBlob​(java.lang.String blobName,
                              java.io.InputStream inputStream,
                              long blobSize,
                              boolean failIfAlreadyExists)
                       throws java.io.IOException
        Throws:
        java.io.IOException
      • writeBlobAtomic

        public void writeBlobAtomic​(java.lang.String blobName,
                                    java.io.InputStream inputStream,
                                    long blobSize,
                                    boolean failIfAlreadyExists)
                             throws java.io.IOException
        Throws:
        java.io.IOException
      • delete

        public DeleteResult delete()
                            throws java.io.IOException
        Throws:
        java.io.IOException
      • deleteBlobsIgnoringIfNotExists

        public void deleteBlobsIgnoringIfNotExists​(java.util.List<java.lang.String> blobNames)
                                            throws java.io.IOException
        Throws:
        java.io.IOException
      • listBlobsByPrefix

        public java.util.Map<java.lang.String,​BlobMetadata> listBlobsByPrefix​(@Nullable
                                                                                    java.lang.String prefix)
                                                                             throws java.io.IOException
        Throws:
        java.io.IOException
      • listBlobs

        public java.util.Map<java.lang.String,​BlobMetadata> listBlobs()
                                                                     throws java.io.IOException
        Throws:
        java.io.IOException
      • children

        public java.util.Map<java.lang.String,​BlobContainer> children()
                                                                     throws java.io.IOException
        Throws:
        java.io.IOException
      • buildKey

        protected java.lang.String buildKey​(java.lang.String blobName)