Index

A C D E G H I L M N O P R S T U V 
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form

A

addEntropy(byte[]) - Static method in class com.aoapps.io.posix.linux.DevRandom
Adds random entropy to the kernel.

C

checkRead() - Method in class com.aoapps.io.posix.PosixFile
Ensures that the calling thread is allowed to read this PosixFile in any way.
checkRead(String) - Static method in class com.aoapps.io.posix.PosixFile
Ensures that the calling thread is allowed to read this path in any way.
checkWrite() - Method in class com.aoapps.io.posix.PosixFile
Ensures that the calling thread is allowed to write to or modify this PosixFile in any way.
checkWrite(String) - Static method in class com.aoapps.io.posix.PosixFile
Ensures that the calling thread is allowed to write to or modify this path in any way.
chown(int, int) - Method in class com.aoapps.io.posix.PosixFile
Changes both the owner and group for a file.
closeDevRandomIn() - Static method in class com.aoapps.io.posix.linux.DevRandom
Closes the FileInputStream that reads from /dev/random.
com.aoapps.io.posix - module com.aoapps.io.posix
 
com.aoapps.io.posix - package com.aoapps.io.posix
 
com.aoapps.io.posix.linux - package com.aoapps.io.posix.linux
 
contentEquals(byte[]) - Method in class com.aoapps.io.posix.PosixFile
Compares the contents of a file to a byte[].
contentEquals(PosixFile) - Method in class com.aoapps.io.posix.PosixFile
Compares this contents of this file to the contents of another file.
copyTo(PosixFile, boolean) - Method in class com.aoapps.io.posix.PosixFile
Copies one filesystem object to another.
crypt(String) - Static method in class com.aoapps.io.posix.PosixFile
Deprecated.
crypt(String, PosixFile.CryptAlgorithm) - Static method in class com.aoapps.io.posix.PosixFile
Hashes a password using the provided crypt algorithm and a default SecureRandom instance, which is not a strong instance to avoid blocking.
crypt(String, PosixFile.CryptAlgorithm, SecureRandom) - Static method in class com.aoapps.io.posix.PosixFile
Hashes a password using the provided crypt algorithm and the provided random source.
crypt(String, String) - Static method in class com.aoapps.io.posix.PosixFile
Hashes a password using the provided salt.
crypt(String, SecureRandom) - Static method in class com.aoapps.io.posix.PosixFile

D

delete() - Method in class com.aoapps.io.posix.PosixFile
Deletes this file.
deleteRecursive() - Method in class com.aoapps.io.posix.PosixFile
Deletes this file and if it is a directory, all files below it.
DES - Enum constant in enum com.aoapps.io.posix.PosixFile.CryptAlgorithm
Deprecated.
This is the old-school weakest form, do not use unless somehow absolutely required.
DEV_RANDOM_PATH - Static variable in class com.aoapps.io.posix.linux.DevRandom
The device file path used to obtain and add random data.
DevRandom - Class in com.aoapps.io.posix.linux
This class acts as a direct source of Random data from /dev/random on Linux platforms.
DevRandom() - Constructor for class com.aoapps.io.posix.linux.DevRandom
 
devRandomUF - Static variable in class com.aoapps.io.posix.linux.DevRandom
The device file used to obtain and add random data.

E

ENTROPY_AVAIL_PATH - Static variable in class com.aoapps.io.posix.linux.DevRandom
The device file path used to obtain the entropy statistics.
entropyAvailUF - Static variable in class com.aoapps.io.posix.linux.DevRandom
The device file used to obtain the entropy statistics.
equals(Object) - Method in class com.aoapps.io.posix.PosixFile
 
exists() - Method in class com.aoapps.io.posix.PosixFile
Deprecated.
Please use getStat(Stat).exists()
exists() - Method in class com.aoapps.io.posix.Stat
Determines if a file exists, a symbolic link with an invalid destination is still considered to exist.

G

generateSalt(SecureRandom) - Method in enum com.aoapps.io.posix.PosixFile.CryptAlgorithm
Generates a random salt for this algorithm.
getAccessTime() - Method in class com.aoapps.io.posix.PosixFile
Deprecated.
Please use getStat(Stat).getAccessTime()
getAccessTime() - Method in class com.aoapps.io.posix.Stat
Gets the last access to this file.
getBlockCount() - Method in class com.aoapps.io.posix.PosixFile
Deprecated.
Please use getStat(State).getBlockCount()
getBlockCount() - Method in class com.aoapps.io.posix.Stat
Gets the block count for this file.
getBlockSize() - Method in class com.aoapps.io.posix.PosixFile
Deprecated.
Please use getStat(Stat).getBlockSize()
getBlockSize() - Method in class com.aoapps.io.posix.Stat
Gets the block size for this file.
getChangeTime() - Method in class com.aoapps.io.posix.PosixFile
Deprecated.
Please use getStat(Stat).getChangeTime()
getChangeTime() - Method in class com.aoapps.io.posix.Stat
Gets the change time of this file.
getDevice() - Method in class com.aoapps.io.posix.PosixFile
Deprecated.
Please use getStat(Stat).getDevice()
getDevice() - Method in class com.aoapps.io.posix.Stat
Gets the device for this file.
getDeviceIdentifier() - Method in class com.aoapps.io.posix.PosixFile
Deprecated.
Please use getStat(Stat).getDeviceIdentifier()
getDeviceIdentifier() - Method in class com.aoapps.io.posix.Stat
Gets the device identifier for this file.
getEntropyAvail() - Static method in class com.aoapps.io.posix.linux.DevRandom
Gets the number of random bits currently available in the kernel.
getExtension() - Method in class com.aoapps.io.posix.PosixFile
Gets the extension for this file.
getFile() - Method in class com.aoapps.io.posix.PosixFile
Gets the File for this PosixFile.
getFilename() - Method in class com.aoapps.io.posix.PosixFile
Deprecated.
the use of the word filename is misleading since it represents the entire path, please use getPath() instead.
getGid() - Method in class com.aoapps.io.posix.PosixFile
Deprecated.
Please use getStat(Stat).getGid()
getGid() - Method in class com.aoapps.io.posix.Stat
Gets the group ID for this file.
getInode() - Method in class com.aoapps.io.posix.PosixFile
Deprecated.
Please use getStat(Stat).getInode()
getInode() - Method in class com.aoapps.io.posix.Stat
Gets the inode for this file.
getLinkCount() - Method in class com.aoapps.io.posix.PosixFile
Deprecated.
Please use getStat(Stat).getNumberLinks()
getMode() - Method in class com.aoapps.io.posix.PosixFile
Deprecated.
Please use getStat(Stat).getMode()
getMode() - Method in class com.aoapps.io.posix.Stat
Gets the permission bits of the mode of this file.
getModeString() - Method in class com.aoapps.io.posix.PosixFile
Deprecated.
Please use getStat(Stat).getModeString()
getModeString() - Method in class com.aoapps.io.posix.Stat
Gets a String representation of the mode of this file similar to the output of the POSIX ls command.
getModeString(long) - Static method in class com.aoapps.io.posix.PosixFile
Gets a String representation of a mode similar to the output of the POSIX ls command.
getModifyTime() - Method in class com.aoapps.io.posix.PosixFile
Deprecated.
Please use getStat(Stat).getModifyTime()
getModifyTime() - Method in class com.aoapps.io.posix.Stat
Gets the modification time of the file.
getNumberLinks() - Method in class com.aoapps.io.posix.Stat
Gets the link count for this file.
getParent() - Method in class com.aoapps.io.posix.PosixFile
Gets the parent of this file or null if it doesn't have a parent.
getPath() - Method in class com.aoapps.io.posix.PosixFile
Gets the path for this PosixFile.
getPoolSize() - Static method in class com.aoapps.io.posix.linux.DevRandom
Gets the number of bits in the random pool in the kernel.
getRawMode() - Method in class com.aoapps.io.posix.Stat
Gets the complete mode of the file, including the bits representing the file type.
getSaltLength() - Method in enum com.aoapps.io.posix.PosixFile.CryptAlgorithm
Gets the number of characters in the salt, not including the prefix.
getSaltPrefix() - Method in enum com.aoapps.io.posix.PosixFile.CryptAlgorithm
 
getSecureInputStream(int, int) - Method in class com.aoapps.io.posix.PosixFile
Securely gets a FileInputStream to this file, temporarily performing permission changes and ensuring that no symbolic links are anywhere in the path.
getSecureOutputStream(int, int, long, boolean, int, int) - Method in class com.aoapps.io.posix.PosixFile
Securely gets a FileOutputStream to this file, temporarily performing permission changes and ensuring that no symbolic links are anywhere in the path.
getSecureRandomAccessFile(String, int, int) - Method in class com.aoapps.io.posix.PosixFile
Securely gets a RandomAccessFile to this file, temporarily performing permission changes and ensuring that no symbolic links are anywhere in the path.
getSize() - Method in class com.aoapps.io.posix.PosixFile
Deprecated.
Please use getStat(Stat).getSize()
getSize() - Method in class com.aoapps.io.posix.Stat
Gets the size of the file.
getStat() - Method in class com.aoapps.io.posix.PosixFile
Stats the file.
getStatMode() - Method in class com.aoapps.io.posix.PosixFile
Deprecated.
Please use getStat(Stat).getRawMode()
getUid() - Method in class com.aoapps.io.posix.PosixFile
Deprecated.
Please use getStat(Stat).getUid()
getUid() - Method in class com.aoapps.io.posix.Stat
Gets the user ID of the file.
GROUP_EXECUTE - Static variable in class com.aoapps.io.posix.PosixFile
Group execute permissions.
GROUP_READ - Static variable in class com.aoapps.io.posix.PosixFile
Group read permissions.
GROUP_WRITE - Static variable in class com.aoapps.io.posix.PosixFile
Group write permissions.

H

hashCode() - Method in class com.aoapps.io.posix.PosixFile
 

I

IS_BLOCK_DEVICE - Static variable in class com.aoapps.io.posix.PosixFile
Is a block device.
IS_CHARACTER_DEVICE - Static variable in class com.aoapps.io.posix.PosixFile
Is a character special device.
IS_DIRECTORY - Static variable in class com.aoapps.io.posix.PosixFile
Is a directory.
IS_FIFO - Static variable in class com.aoapps.io.posix.PosixFile
Is a FIFO.
IS_REGULAR_FILE - Static variable in class com.aoapps.io.posix.PosixFile
Is a regular file.
IS_SOCKET - Static variable in class com.aoapps.io.posix.PosixFile
Is a socket.
IS_SYM_LINK - Static variable in class com.aoapps.io.posix.PosixFile
Is a symbolic link.
isBlockDevice() - Method in class com.aoapps.io.posix.PosixFile
Deprecated.
Please use getStat(Stat).isBlockDevice()
isBlockDevice() - Method in class com.aoapps.io.posix.Stat
Determines if this file represents a block device.
isBlockDevice(long) - Static method in class com.aoapps.io.posix.PosixFile
Determines if a specific mode represents a block device.
isCharacterDevice() - Method in class com.aoapps.io.posix.PosixFile
Deprecated.
Please use getStat(Stat).isCharacterDevice()
isCharacterDevice() - Method in class com.aoapps.io.posix.Stat
Determines if this file represents a character device.
isCharacterDevice(long) - Static method in class com.aoapps.io.posix.PosixFile
Determines if a specific mode represents a character device.
isDirectory() - Method in class com.aoapps.io.posix.PosixFile
Deprecated.
Please use getStat(Stat).isDirectory()
isDirectory() - Method in class com.aoapps.io.posix.Stat
Determines if this file represents a directory.
isDirectory(long) - Static method in class com.aoapps.io.posix.PosixFile
Determines if a specific mode represents a directory.
isFifo() - Method in class com.aoapps.io.posix.PosixFile
Deprecated.
Please use getStat(Stat).isFifo()
isFifo() - Method in class com.aoapps.io.posix.Stat
Determines if this file represents a FIFO.
isFifo(long) - Static method in class com.aoapps.io.posix.PosixFile
Determines if a specific mode represents a FIFO.
isRegularFile() - Method in class com.aoapps.io.posix.PosixFile
Deprecated.
Please use getStat(Stat).isRegularFile()
isRegularFile() - Method in class com.aoapps.io.posix.Stat
Determines if this file represents a regular file.
isRegularFile(long) - Static method in class com.aoapps.io.posix.PosixFile
Determines if a specific mode represents a regular file.
isRootDirectory() - Method in class com.aoapps.io.posix.PosixFile
Determines if this file is the root directory.
isSocket() - Method in class com.aoapps.io.posix.PosixFile
Deprecated.
Please use getStat(Stat).isSocket()
isSocket() - Method in class com.aoapps.io.posix.Stat
Determines if this file represents a socket.
isSocket(long) - Static method in class com.aoapps.io.posix.PosixFile
Determines if a specific mode represents a socket.
isSymLink() - Method in class com.aoapps.io.posix.PosixFile
Deprecated.
Please use getStat(Stat).isSymLink()
isSymLink() - Method in class com.aoapps.io.posix.Stat
Determines if this file represents a sybolic link.
isSymLink(long) - Static method in class com.aoapps.io.posix.PosixFile
Determines if a specific mode represents a symbolic link.

L

link(PosixFile) - Method in class com.aoapps.io.posix.PosixFile
Creates a hard link.
link(String) - Method in class com.aoapps.io.posix.PosixFile
Creates a hard link.
list() - Method in class com.aoapps.io.posix.PosixFile
Lists the contents of the directory.
loadLibrary() - Static method in class com.aoapps.io.posix.PosixFile
Loads the shared library native code libaocode.so.

M

main(String[]) - Static method in class com.aoapps.io.posix.linux.DevRandom
Manually adds entropy to the kernel, reads from standard in.
MD5 - Enum constant in enum com.aoapps.io.posix.PosixFile.CryptAlgorithm
Deprecated.
As of glibc 2.7, prefer the stronger PosixFile.CryptAlgorithm.SHA256 and PosixFile.CryptAlgorithm.SHA512 alternatives.
mkdir() - Method in class com.aoapps.io.posix.PosixFile
Creates a directory.
mkdir(boolean, long) - Method in class com.aoapps.io.posix.PosixFile
Creates a directory and sets its permissions, optionally creating all the parent directories if they do not exist.
mkdir(boolean, long, int, int) - Method in class com.aoapps.io.posix.PosixFile
Creates a directory and sets its permissions, optionally creating all the parent directories if they do not exist.
mkfifo(long) - Method in class com.aoapps.io.posix.PosixFile
Creates a FIFO.
mknod(long, long) - Method in class com.aoapps.io.posix.PosixFile
Creates a device file.
mktemp(String) - Static method in class com.aoapps.io.posix.PosixFile
mktemp(String, boolean) - Static method in class com.aoapps.io.posix.PosixFile

N

next(int) - Method in class com.aoapps.io.posix.linux.DevRandom
 
nextBoolean() - Method in class com.aoapps.io.posix.linux.DevRandom
 
nextBytes(byte[]) - Method in class com.aoapps.io.posix.linux.DevRandom
 
nextBytes(byte[], int, int) - Method in class com.aoapps.io.posix.linux.DevRandom
nextBytesStatic(byte[]) - Static method in class com.aoapps.io.posix.linux.DevRandom
Static implementation of nextBytes(byte[]).
nextBytesStatic(byte[], int, int) - Static method in class com.aoapps.io.posix.linux.DevRandom
Static implementation of nextBytes(byte[], int, int).
nextInt() - Method in class com.aoapps.io.posix.linux.DevRandom
 
nextLong() - Method in class com.aoapps.io.posix.linux.DevRandom
 
NOT_EXISTS - Static variable in class com.aoapps.io.posix.Stat
A stat that represents a non-existent file.
NOT_GROUP_EXECUTE - Static variable in class com.aoapps.io.posix.PosixFile
 
NOT_GROUP_READ - Static variable in class com.aoapps.io.posix.PosixFile
 
NOT_GROUP_WRITE - Static variable in class com.aoapps.io.posix.PosixFile
 
NOT_OTHER_EXECUTE - Static variable in class com.aoapps.io.posix.PosixFile
 
NOT_OTHER_READ - Static variable in class com.aoapps.io.posix.PosixFile
 
NOT_OTHER_WRITE - Static variable in class com.aoapps.io.posix.PosixFile
 
NOT_SAVE_TEXT_IMAGE - Static variable in class com.aoapps.io.posix.PosixFile
 
NOT_SET_GID - Static variable in class com.aoapps.io.posix.PosixFile
 
NOT_SET_UID - Static variable in class com.aoapps.io.posix.PosixFile
 
NOT_USER_EXECUTE - Static variable in class com.aoapps.io.posix.PosixFile
 
NOT_USER_READ - Static variable in class com.aoapps.io.posix.PosixFile
 
NOT_USER_WRITE - Static variable in class com.aoapps.io.posix.PosixFile
 

O

openDevRandomIn() - Static method in class com.aoapps.io.posix.linux.DevRandom
Opens the FileInputStream that reads from /dev/random.
OTHER_EXECUTE - Static variable in class com.aoapps.io.posix.PosixFile
World execute permissions.
OTHER_READ - Static variable in class com.aoapps.io.posix.PosixFile
World read permission.
OTHER_WRITE - Static variable in class com.aoapps.io.posix.PosixFile
World write permissions.

P

path - Variable in class com.aoapps.io.posix.PosixFile
The path.
PERMISSION_MASK - Static variable in class com.aoapps.io.posix.PosixFile
The mode mask for just the file permissions.
POOL_SIZE_PATH - Static variable in class com.aoapps.io.posix.linux.DevRandom
The device file path used to obtain the pool size.
poolSizeUF - Static variable in class com.aoapps.io.posix.linux.DevRandom
The device file used to obtain the pool size.
PosixFile - Class in com.aoapps.io.posix
Access and modify all the POSIX-specific file attributes.
PosixFile(PosixFile, String) - Constructor for class com.aoapps.io.posix.PosixFile
Deprecated.
Please call #PosixFile(PosixFile,String,boolean) to explicitly control whether strict parent checking is performed
PosixFile(PosixFile, String, boolean) - Constructor for class com.aoapps.io.posix.PosixFile
Creates a new POSIX file.
PosixFile(File) - Constructor for class com.aoapps.io.posix.PosixFile
Creates a new POSIX file.
PosixFile(File, String) - Constructor for class com.aoapps.io.posix.PosixFile
Creates a new POSIX file.
PosixFile(String) - Constructor for class com.aoapps.io.posix.PosixFile
Creates a new POSIX file.
PosixFile(String, String) - Constructor for class com.aoapps.io.posix.PosixFile
Creates a new POSIX file.
PosixFile.CryptAlgorithm - Enum in com.aoapps.io.posix
The set of supported crypt algorithms.
PosixFile.SecuredDirectory - Class in com.aoapps.io.posix
TODO: Java 1.8: Can do this in a pure Java way

R

readLink() - Method in class com.aoapps.io.posix.PosixFile
Reads a symbolic link.
renameTo(PosixFile) - Method in class com.aoapps.io.posix.PosixFile
Renames this file, possibly overwriting any previous file.
restoreParents(List<PosixFile.SecuredDirectory>) - Method in class com.aoapps.io.posix.PosixFile
TODO: Java 1.8: Can do this in a pure Java way
ROOT_GID - Static variable in class com.aoapps.io.posix.PosixFile
The GID of the root user.
ROOT_UID - Static variable in class com.aoapps.io.posix.PosixFile
The UID of the root user.

S

SAVE_TEXT_IMAGE - Static variable in class com.aoapps.io.posix.PosixFile
Save text image.
secureContentEquals(byte[], int, int) - Method in class com.aoapps.io.posix.PosixFile
Compares the contents of a file to a byte[].
secureContentEquals(PosixFile, int, int) - Method in class com.aoapps.io.posix.PosixFile
Compares this contents of this file to the contents of another file.
secureDeleteRecursive(int, int) - Method in class com.aoapps.io.posix.PosixFile
Securely deletes this file entry and all files below it while not following symbolic links.
secureParents(List<PosixFile.SecuredDirectory>, int, int) - Method in class com.aoapps.io.posix.PosixFile
TODO: Java 1.8: Can do this in a pure Java way
SET_GID - Static variable in class com.aoapps.io.posix.PosixFile
Set GID on execute.
SET_UID - Static variable in class com.aoapps.io.posix.PosixFile
Set UID on execute.
setAccessTime(long) - Method in class com.aoapps.io.posix.PosixFile
Deprecated.
This method internally performs an extra stat. Please try to use utime(long,long) directly to avoid this extra stat.
setGid(int) - Method in class com.aoapps.io.posix.PosixFile
Deprecated.
This method internally performs an extra stat. Please try to use chown(int,int) directly to avoid this extra stat.
setGID(int) - Method in class com.aoapps.io.posix.PosixFile
Deprecated.
Please use PosixFile.setGid(int) instead.
setMode(long) - Method in class com.aoapps.io.posix.PosixFile
Sets the permissions for this file.
setModifyTime(long) - Method in class com.aoapps.io.posix.PosixFile
Deprecated.
This method internally performs an extra stat. Please try to use utime(long,long) directly to avoid this extra stat.
setSeed(long) - Method in class com.aoapps.io.posix.linux.DevRandom
This class does not use this seed value.
setUid(int) - Method in class com.aoapps.io.posix.PosixFile
Deprecated.
This method internally performs an extra stat. Please try to use chown(int,int) directly to avoid this extra stat.
setUID(int) - Method in class com.aoapps.io.posix.PosixFile
Deprecated.
Please use PosixFile.setUid(int) instead.
SHA256 - Enum constant in enum com.aoapps.io.posix.PosixFile.CryptAlgorithm
SHA-256 algorithm requires glibc 2.7+.
SHA512 - Enum constant in enum com.aoapps.io.posix.PosixFile.CryptAlgorithm
SHA-512 algorithm requires glibc 2.7+.
Stat - Class in com.aoapps.io.posix
One stat call will have all of its output stored in an instance of this class.
Stat(boolean, long, long, long, int, int, int, long, long, int, long, long, long, long) - Constructor for class com.aoapps.io.posix.Stat
Creates a new stat given all the values.
symLink(String) - Method in class com.aoapps.io.posix.PosixFile
Creates a symbolic link.

T

toString() - Method in class com.aoapps.io.posix.PosixFile
 
TYPE_MASK - Static variable in class com.aoapps.io.posix.PosixFile
The mode mask for just the file type.

U

USER_EXECUTE - Static variable in class com.aoapps.io.posix.PosixFile
Owner execute permissions.
USER_READ - Static variable in class com.aoapps.io.posix.PosixFile
Owner read permissions.
USER_WRITE - Static variable in class com.aoapps.io.posix.PosixFile
Owner write permissions.
utime(long, long) - Method in class com.aoapps.io.posix.PosixFile
Sets the access and modify times for this file.

V

valueOf(String) - Static method in enum com.aoapps.io.posix.PosixFile.CryptAlgorithm
Returns the enum constant of this type with the specified name.
values() - Static method in enum com.aoapps.io.posix.PosixFile.CryptAlgorithm
Returns an array containing the constants of this enum type, in the order they are declared.
A C D E G H I L M N O P R S T U V 
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form