diff core/src/luan/modules/Utils.java @ 260:f1f7d8c7e94e

add Io.protocols git-svn-id: https://luan-java.googlecode.com/svn/trunk@261 21e917c8-12df-6dd8-5cb6-c86387c605b9
author fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
date Tue, 28 Oct 2014 23:25:13 +0000
parents 4dfa86dbca45
children 5e7450ac27f2
line wrap: on
line diff
--- a/core/src/luan/modules/Utils.java	Tue Oct 28 21:20:48 2014 +0000
+++ b/core/src/luan/modules/Utils.java	Tue Oct 28 23:25:13 2014 +0000
@@ -73,14 +73,15 @@
 		}
 	}
 */
-	public static File toFile(String path) {
+/*
+	private static File toFile(String path) {
 		if( path.contains("//") )
 			return null;
 		File file = new File(path);
 		return file.exists() ? file : null;
 	}
 
-	public static URL toUrl(String path) {
+	private static URL toUrl(String path) {
 		if( path.indexOf(':') == -1 )
 			return null;
 		if( path.startsWith("classpath:") ) {
@@ -115,7 +116,8 @@
 		return null;
 	}
 
-	public static boolean exists(String path) {
+	static boolean exists(String path) {
 		return toFile(path)!=null || toUrl(path)!=null;
 	}
+*/
 }