public final class Utilities extends Object
Modifier and Type | Field and Description |
---|---|
static boolean |
isPlatformUnix |
static boolean |
isPlatformWindows |
Constructor and Description |
---|
Utilities() |
Modifier and Type | Method and Description |
---|---|
static boolean |
checkZipFile(Pathname name) |
(package private) static String |
escapeFormat(String s) |
static Pathname |
getDirectoryPathname(File file) |
static ZipEntry |
getEntry(ZipInputStream zipInputStream,
String entryName) |
static ZipEntry |
getEntry(ZipInputStream zipInputStream,
String entryName,
boolean errorOnFailure) |
static InputStream |
getEntryAsInputStream(ZipInputStream zipInputStream,
String entryName) |
static File |
getFile(Pathname pathname) |
static File |
getFile(Pathname pathname,
Pathname defaultPathname) |
(package private) static InputStream |
getInputStream(ZipFile jarFile,
Pathname inner) |
static ZipInputStream |
getZipInputStream(ZipFile zipfile,
String entryName) |
static ZipInputStream |
getZipInputStream(ZipFile zipfile,
String entryName,
boolean errorOnFailure) |
static boolean |
isFilenameAbsolute(String filename) |
static ByteArrayOutputStream |
readEntry(ZipInputStream stream) |
public static final boolean isPlatformUnix
public static final boolean isPlatformWindows
public static boolean isFilenameAbsolute(String filename)
public static ZipInputStream getZipInputStream(ZipFile zipfile, String entryName)
public static ZipInputStream getZipInputStream(ZipFile zipfile, String entryName, boolean errorOnFailure)
public static InputStream getEntryAsInputStream(ZipInputStream zipInputStream, String entryName)
public static ByteArrayOutputStream readEntry(ZipInputStream stream)
public static ZipEntry getEntry(ZipInputStream zipInputStream, String entryName)
public static ZipEntry getEntry(ZipInputStream zipInputStream, String entryName, boolean errorOnFailure)
public static final boolean checkZipFile(Pathname name)
static InputStream getInputStream(ZipFile jarFile, Pathname inner)