Class FileContainer


  • public final class FileContainer
    extends java.lang.Object
    Wrapper of meta data and content of a file.
    • Constructor Summary

      Constructors 
      Constructor Description
      FileContainer​(FileInfo info, org.springframework.core.io.Resource content)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object o)  
      org.springframework.core.io.Resource getContent()
      contains content stream.
      long getDirectoryId()
      Gets a directory id.
      long getId()
      Gets the file id.
      FileInfo getInfo()
      contains info of file.
      java.lang.String getName()
      Gets the file name.
      long getSize()
      Gets the file size.
      java.lang.String getType()
      Gets the file type.
      int hashCode()  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • FileContainer

        public FileContainer​(FileInfo info,
                             org.springframework.core.io.Resource content)
    • Method Detail

      • getDirectoryId

        public long getDirectoryId()
        Gets a directory id.
        Returns:
        parent directory of file
      • getId

        public long getId()
        Gets the file id.
        Returns:
        file id
      • getType

        public java.lang.String getType()
        Gets the file type.
        Returns:
        content type of file
      • getName

        public java.lang.String getName()
        Gets the file name.
        Returns:
        display name of file
      • getSize

        public long getSize()
        Gets the file size.
        Returns:
        size of file in bytes
      • getInfo

        public FileInfo getInfo()
        contains info of file.
      • getContent

        public org.springframework.core.io.Resource getContent()
        contains content stream.
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object