public class MacStuff extends Object
| Modifier and Type | Method and Description |
|---|---|
static boolean |
fileHasType(File file,
String type)
Returns true if a file has the given file type.
|
static boolean |
isMacintosh()
Determines if we're running on a Macintosh,
so appropriate UI adjustments can be made.
|
public static boolean isMacintosh()
public static boolean fileHasType(File file, String type) throws ClassNotFoundException
try {
if (sig.getType() == SignatureType.FILETYPE &&
MacStuff.isMacintosh ()) {
if (!MacStuff.fileHasType(file, sig.getValueString())) {
info.setConsistent (false);
}
}
}
catch (ClassNotFoundException e) {
// Mac classes missing -- can't check filetype.
}
ClassNotFoundExceptionCopyright © 2008–2018 The Open Preservation Foundation. All rights reserved.