Class DefaultFileContentInfo

  • All Implemented Interfaces:
    FileContentInfo

    public class DefaultFileContentInfo
    extends java.lang.Object
    implements FileContentInfo
    The default file content information.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.lang.String contentEncoding  
      private java.lang.String contentType  
    • Constructor Summary

      Constructors 
      Constructor Description
      DefaultFileContentInfo​(java.lang.String contentType, java.lang.String contentEncoding)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getContentEncoding()
      Gets the content encoding.
      java.lang.String getContentType()
      Gets the content type.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • contentType

        private final java.lang.String contentType
      • contentEncoding

        private final java.lang.String contentEncoding
    • Constructor Detail

      • DefaultFileContentInfo

        public DefaultFileContentInfo​(java.lang.String contentType,
                                      java.lang.String contentEncoding)
    • Method Detail

      • getContentType

        public java.lang.String getContentType()
        Description copied from interface: FileContentInfo
        Gets the content type.
        Specified by:
        getContentType in interface FileContentInfo
        Returns:
        The file content type.
      • getContentEncoding

        public java.lang.String getContentEncoding()
        Description copied from interface: FileContentInfo
        Gets the content encoding.
        Specified by:
        getContentEncoding in interface FileContentInfo
        Returns:
        The file content encoding.