Example usage for Java android.os ParcelFileDescriptor fields, constructors, methods, implement or subclass
The text is from its open source code.
int | MODE_READ_ONLY For use with #open : open the file with read-only access. |
int | MODE_WRITE_ONLY For use with #open : open the file with write-only access. |
int | MODE_READ_WRITE For use with #open : open the file with read and write access. |
int | MODE_CREATE For use with #open : create the file if it doesn't already exist. |
int | MODE_TRUNCATE For use with #open : erase contents of file when opening. |
int | MODE_APPEND For use with #open : append to end of file while writing. |
ParcelFileDescriptor | adoptFd(int fd) Take ownership of a raw native fd in to a new ParcelFileDescriptor. |
void | checkError() Detect and throw if the other end of a pipe or socket pair encountered an error or crashed. |
void | close() Close the ParcelFileDescriptor. |
void | closeWithError(String msg) Close the ParcelFileDescriptor, informing any peer that an error occurred while processing. |
ParcelFileDescriptor[] | createPipe() Create two ParcelFileDescriptors structured as a data pipe. |
ParcelFileDescriptor[] | createReliablePipe() Create two ParcelFileDescriptors structured as a data pipe. |
int | detachFd() Return the native fd int for this ParcelFileDescriptor and detach it from the object here. |
int | getFd() Return the native fd int for this ParcelFileDescriptor. |
FileDescriptor | getFileDescriptor() Retrieve the actual FileDescriptor associated with this object. |
long | getStatSize() Return the total size of the file representing this fd, as determined by stat() . |
int | hashCode() Returns a hash code value for the object. |
ParcelFileDescriptor | open(File file, int mode) Create a new ParcelFileDescriptor accessing a given file. |
ParcelFileDescriptor | open(File file, int mode, Handler handler, final OnCloseListener listener) Create a new ParcelFileDescriptor accessing a given file. |
int | parseMode(String mode) Converts a string representing a file mode, such as "rw", into a bitmask suitable for use with #open . |