public static String readFile(File path, NSStringEncoding enc) throws NSErrorException { return readFile(path.getAbsolutePath(), enc); }
@Method(selector = "stringWithContentsOfFile:encoding:error:") private static native String readFile(String path, NSStringEncoding enc, NSError.NSErrorPtr error); @Method(selector = "stringByAppendingPathComponent:")
public static String readFile(File path, NSStringEncoding enc) throws NSErrorException { return readFile(path.getAbsolutePath(), enc); }
public static String readFile(File path, NSStringEncoding enc) throws NSErrorException { return readFile(path.getAbsolutePath(), enc); }
@Method(selector = "stringWithContentsOfFile:encoding:error:") private static native String readFile(String path, NSStringEncoding enc, NSError.NSErrorPtr error); @Method(selector = "stringByAppendingPathComponent:")
@Method(selector = "stringWithContentsOfFile:encoding:error:") private static native String readFile(String path, NSStringEncoding enc, NSError.NSErrorPtr error); @Method(selector = "stringByAppendingPathComponent:")