public class ProcFile
extends java.io.File
implements android.os.Parcelable
Modifier and Type | Field and Description |
---|---|
java.lang.String |
content |
static android.os.Parcelable.Creator<ProcFile> |
CREATOR |
Modifier | Constructor and Description |
---|---|
protected |
ProcFile(android.os.Parcel in) |
protected |
ProcFile(java.lang.String path) |
Modifier and Type | Method and Description |
---|---|
int |
describeContents() |
long |
length() |
protected static java.lang.String |
readFile(java.lang.String path)
Read the contents of a file.
|
void |
writeToParcel(android.os.Parcel dest,
int flags) |
canExecute, canRead, canWrite, compareTo, createNewFile, createTempFile, createTempFile, delete, deleteOnExit, equals, exists, getAbsoluteFile, getAbsolutePath, getCanonicalFile, getCanonicalPath, getFreeSpace, getName, getParent, getParentFile, getPath, getTotalSpace, getUsableSpace, hashCode, isAbsolute, isDirectory, isFile, isHidden, lastModified, list, list, listFiles, listFiles, listFiles, listRoots, mkdir, mkdirs, renameTo, setExecutable, setExecutable, setLastModified, setReadable, setReadable, setReadOnly, setWritable, setWritable, toPath, toString, toURI, toURL
public final java.lang.String content
public static final android.os.Parcelable.Creator<ProcFile> CREATOR
protected ProcFile(java.lang.String path) throws java.io.IOException
java.io.IOException
protected ProcFile(android.os.Parcel in)
protected static java.lang.String readFile(java.lang.String path) throws java.io.IOException
path
- the absolute path to the file.java.io.IOException
- if an error occurred while reading.public long length()
length
in class java.io.File
public int describeContents()
describeContents
in interface android.os.Parcelable
public void writeToParcel(android.os.Parcel dest, int flags)
writeToParcel
in interface android.os.Parcelable