1 9 package j2me.io; 10 11 import j2me.lang.UnsupportedOperationException; 12 13 17 public class File { 18 19 public static final String separator = System.getProperty("file.separator"); 20 21 public static final char separatorChar = separator.charAt(0); 22 23 public static final String pathSeparator = System 24 .getProperty("path.separator"); 25 26 public static final char pathSeparatorChar = pathSeparator.charAt(0); 27 28 private String _path; 29 30 public File(String path) { 31 _path = path; 32 } 33 34 public String getPath() { 35 return _path; 36 } 37 38 public boolean exists() { 39 throw new UnsupportedOperationException ( 40 "File operations not supported for J2ME build"); 41 } 42 43 public boolean isDirectory() { 44 throw new UnsupportedOperationException ( 45 "File operations not supported for J2ME build"); 46 } 47 48 public String getName() { 49 throw new UnsupportedOperationException ( 50 "File operations not supported for J2ME build"); 51 } 52 53 public File[] listFiles() { 54 throw new UnsupportedOperationException ( 55 "File operations not supported for J2ME build"); 56 } 57 } | Popular Tags |