|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.fernsroth.squashfs.SquashFSUtils
public final class SquashFSUtils
| Field Summary | |
|---|---|
static java.text.SimpleDateFormat |
ISO8601_FORMAT
iso 8601 date formatter. |
static java.text.SimpleDateFormat |
LINUX_DATE_FORMAT
linux date format. |
| Method Summary | |
|---|---|
static java.util.Date |
getDateFromMTime(long mtime)
gets a date from a mtime. |
static int |
getModeFromString(java.lang.String value)
gets the mode from a string. |
static java.lang.String |
getModeString(BaseFile baseFile)
gets the mode string. |
static long |
getMTimeFromDate(java.util.Date dateMTime)
gets the mtime from the date. |
static int |
getPermissionsFromString(java.lang.String str)
gets the permissions bit mask from a string. |
static java.lang.String |
getPermissionsString(long permissions)
gets the permissions. |
static java.lang.String |
getRelativePath(java.io.File root,
java.io.File file)
gets the relative path of a file. |
static void |
walk(Directory dir,
WalkHandler handler)
walks a squashfs directory. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.text.SimpleDateFormat LINUX_DATE_FORMAT
public static java.text.SimpleDateFormat ISO8601_FORMAT
| Method Detail |
|---|
public static java.lang.String getModeString(BaseFile baseFile)
baseFile - the file to get the string from.
public static java.lang.String getPermissionsString(long permissions)
permissions -
public static int getModeFromString(java.lang.String value)
value - the value to convert.
public static int getPermissionsFromString(java.lang.String str)
str - the string to get it from.
public static java.util.Date getDateFromMTime(long mtime)
mtime - the mtime to convert.
public static long getMTimeFromDate(java.util.Date dateMTime)
dateMTime - the date to convert.
public static void walk(Directory dir,
WalkHandler handler)
throws java.lang.Exception
dir - the directory to walk.handler - the walk handler to get called for each entry.
java.lang.Exception
public static java.lang.String getRelativePath(java.io.File root,
java.io.File file)
root - the root path to get relative from.file - the file to get the relative path of.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||