01: /*
02: * Javolution - Java(TM) Solution for Real-Time and Embedded Systems
03: * Copyright (C) 2005 - Javolution (http://javolution.org/)
04: * All rights reserved.
05: *
06: * Permission to use, copy, modify, and distribute this software is
07: * freely granted, provided that this notice is preserved.
08: */
09: package j2me.io;
10:
11: import j2me.lang.UnsupportedOperationException;
12:
13: /**
14: * Class provided for the sole purpose of compiling the FileFilter and
15: * FilenameFilter interfaces.
16: */
17: public class File {
18:
19: public static final String separator = System
20: .getProperty("file.separator");
21:
22: public static final char separatorChar = separator.charAt(0);
23:
24: public static final String pathSeparator = System
25: .getProperty("path.separator");
26:
27: public static final char pathSeparatorChar = pathSeparator
28: .charAt(0);
29:
30: private String _path;
31:
32: public File(String path) {
33: _path = path;
34: }
35:
36: public String getPath() {
37: return _path;
38: }
39:
40: public boolean exists() {
41: throw new UnsupportedOperationException(
42: "File operations not supported for J2ME build");
43: }
44:
45: public boolean isDirectory() {
46: throw new UnsupportedOperationException(
47: "File operations not supported for J2ME build");
48: }
49:
50: public String getName() {
51: throw new UnsupportedOperationException(
52: "File operations not supported for J2ME build");
53: }
54:
55: public File[] listFiles() {
56: throw new UnsupportedOperationException(
57: "File operations not supported for J2ME build");
58: }
59: }
|