Class FileItemStream

    • Method Detail

      • getName

        @Nullable
        public String getName()
        Description copied from interface: IFileItemStream
        Returns the original filename in the client's filesystem, as provided by the browser (or other client software). In most cases, this will be the base file name, without path information. However, some clients, such as the Opera browser, do include path information.
        Specified by:
        getName in interface IFileItemStream
        Returns:
        The original filename in the client's filesystem.
      • getNameSecure

        @Nullable
        public String getNameSecure()
        Description copied from interface: IFileItemStream
        Returns the original filename in the client's filesystem, as provided by the browser (or other client software). In most cases, this will be the base file name, without path information. However, some clients, such as the Opera browser, do include path information. Compared to IFileItemStream.getName() this method automatically removes everything and including a NUL byte and therefore does not throw an InvalidFileNameException.
        Specified by:
        getNameSecure in interface IFileItemStream
        Returns:
        The original filename in the client's filesystem.
      • getNameUnchecked

        @Nullable
        public String getNameUnchecked()
        Description copied from interface: IFileItemStream
        Returns the original filename in the client's filesystem, as provided by the browser (or other client software). In most cases, this will be the base file name, without path information. However, some clients, such as the Opera browser, do include path information.
        Specified by:
        getNameUnchecked in interface IFileItemStream
        Returns:
        The original filename in the client's filesystem.
      • isFormField

        public boolean isFormField()
        Returns, whether this is a form field.
        Specified by:
        isFormField in interface IFileItemStream
        Returns:
        True, if the item is a form field, otherwise false.