Class GridFSDBFile

  • All Implemented Interfaces:
    DBObject, BSONObject

    @Deprecated(since="2021-05-27")
    public class GridFSDBFile
    extends GridFSFile
    Deprecated.
    Usage of this API is not supported in AEM as a Cloud Service.
    This class enables retrieving a GridFS file metadata and content. Operations include:
    • Writing data to a file on disk or an OutputStream
    • Creating an InputStream to stream the data into
    • Constructor Detail

      • GridFSDBFile

        public GridFSDBFile()
        Deprecated.
    • Method Detail

      • getInputStream

        public java.io.InputStream getInputStream()
        Deprecated.
        Returns an InputStream from which data can be read.
        Returns:
        the input stream
      • writeTo

        public long writeTo​(java.lang.String filename)
                     throws java.io.IOException
        Deprecated.
        Writes the file's data to a file on disk.
        Parameters:
        filename - the file name on disk
        Returns:
        number of bytes written
        Throws:
        java.io.IOException - if there are problems writing to the file
      • writeTo

        public long writeTo​(java.io.File file)
                     throws java.io.IOException
        Deprecated.
        Writes the file's data to a file on disk.
        Parameters:
        file - the File object
        Returns:
        number of bytes written
        Throws:
        java.io.IOException - if there are problems writing to the file
      • writeTo

        public long writeTo​(java.io.OutputStream out)
                     throws java.io.IOException
        Deprecated.
        Writes the file's data to an OutputStream.
        Parameters:
        out - the OutputStream
        Returns:
        number of bytes written
        Throws:
        java.io.IOException - if there are problems writing to out