public interface

BaseFileInfo

com.pdftron.pdf.model.BaseFileInfo
Known Indirect Subclasses

Class Overview

Interface class for file

Summary

Constants
int FILE_TYPE_EDIT_URI The file is opened from URI and have edit permission.
int FILE_TYPE_EXTERNAL The file is regular file but is stored in external storage (needs particular permission).
int FILE_TYPE_EXTERNAL_FOLDER The file is a folder and is stored in external storage.
int FILE_TYPE_EXTERNAL_ROOT The file is the root folder and is stored in external storage.
int FILE_TYPE_FILE The file is a regular file.
int FILE_TYPE_FOLDER The file is a folder.
int FILE_TYPE_OFFICE_URI The file is an office URI.
int FILE_TYPE_OPEN_URL The file is opened from a URL.
int FILE_TYPE_UNKNOWN The file type is unknown.
Public Methods
abstract boolean exists()
abstract String getAbsolutePath()
abstract String getFileName()
abstract int getFileType()
abstract String getIdentifier()
abstract String getModifiedDate()
abstract long getSize()
abstract String getSizeInfo()
abstract boolean isDirectory()
abstract boolean isHidden()
abstract boolean isPackage()
abstract boolean isSecured()
abstract void setHidden(boolean hidden)
Specifies if the file is hidden.
abstract void setIsPackage(boolean value)
Specifies if the file is a package.
abstract void setIsSecured(boolean value)
Specifies if the file is secured.

Constants

public static final int FILE_TYPE_EDIT_URI

The file is opened from URI and have edit permission.

Constant Value: 13 (0x0000000d)

public static final int FILE_TYPE_EXTERNAL

The file is regular file but is stored in external storage (needs particular permission).

Constant Value: 6 (0x00000006)

public static final int FILE_TYPE_EXTERNAL_FOLDER

The file is a folder and is stored in external storage.

Constant Value: 9 (0x00000009)

public static final int FILE_TYPE_EXTERNAL_ROOT

The file is the root folder and is stored in external storage.

Constant Value: 7 (0x00000007)

public static final int FILE_TYPE_FILE

The file is a regular file.

Constant Value: 2 (0x00000002)

public static final int FILE_TYPE_FOLDER

The file is a folder.

Constant Value: 1 (0x00000001)

public static final int FILE_TYPE_OFFICE_URI

The file is an office URI.

Constant Value: 15 (0x0000000f)

public static final int FILE_TYPE_OPEN_URL

The file is opened from a URL.

Constant Value: 5 (0x00000005)

public static final int FILE_TYPE_UNKNOWN

The file type is unknown.

Constant Value: -1 (0xffffffff)

Public Methods

public abstract boolean exists ()

Returns
  • True if the file exists

public abstract String getAbsolutePath ()

Returns
  • The absolute path

public abstract String getFileName ()

Returns
  • The file name

public abstract int getFileType ()

Returns
  • The file type

public abstract String getIdentifier ()

Returns
  • The UUID

public abstract String getModifiedDate ()

Returns
  • The modified date

public abstract long getSize ()

Returns
  • The size

public abstract String getSizeInfo ()

Returns
  • The size info

public abstract boolean isDirectory ()

Returns
  • True if the file is directory

public abstract boolean isHidden ()

Returns
  • True if the file is hidden

public abstract boolean isPackage ()

Returns
  • True if the file is a package

public abstract boolean isSecured ()

Returns
  • True if the file is secured

public abstract void setHidden (boolean hidden)

Specifies if the file is hidden.

Parameters
hidden True if the file is hidden

public abstract void setIsPackage (boolean value)

Specifies if the file is a package.

Parameters
value True if the file is a package

public abstract void setIsSecured (boolean value)

Specifies if the file is secured.

Parameters
value True if the file is secured