javax.microedition.io.file
Interface FileConnection
- All Superinterfaces:
- Connection, InputConnection, OutputConnection, StreamConnection
public interface FileConnection
- extends StreamConnection
isOpen
boolean isOpen()
openInputStream
InputStream openInputStream()
throws IOException
- Specified by:
openInputStream
in interface InputConnection
- Throws:
IOException
openDataInputStream
DataInputStream openDataInputStream()
throws IOException
- Specified by:
openDataInputStream
in interface InputConnection
- Throws:
IOException
openOutputStream
OutputStream openOutputStream()
throws IOException
- Specified by:
openOutputStream
in interface OutputConnection
- Throws:
IOException
openDataOutputStream
DataOutputStream openDataOutputStream()
throws IOException
- Specified by:
openDataOutputStream
in interface OutputConnection
- Throws:
IOException
openOutputStream
OutputStream openOutputStream(long arg1)
throws IOException
- Throws:
IOException
totalSize
long totalSize()
availableSize
long availableSize()
usedSize
long usedSize()
directorySize
long directorySize(boolean arg1)
throws IOException
- Throws:
IOException
fileSize
long fileSize()
throws IOException
- Throws:
IOException
canRead
boolean canRead()
canWrite
boolean canWrite()
isHidden
boolean isHidden()
setReadable
void setReadable(boolean arg1)
throws IOException
- Throws:
IOException
setWritable
void setWritable(boolean arg1)
throws IOException
- Throws:
IOException
setHidden
void setHidden(boolean arg1)
throws IOException
- Throws:
IOException
list
Enumeration list()
throws IOException
- Throws:
IOException
list
Enumeration list(String arg1,
boolean arg2)
throws IOException
- Throws:
IOException
create
void create()
throws IOException
- Throws:
IOException
mkdir
void mkdir()
throws IOException
- Throws:
IOException
exists
boolean exists()
isDirectory
boolean isDirectory()
delete
void delete()
throws IOException
- Throws:
IOException
rename
void rename(String arg1)
throws IOException
- Throws:
IOException
truncate
void truncate(long arg1)
throws IOException
- Throws:
IOException
setFileConnection
void setFileConnection(String arg1)
throws IOException
- Throws:
IOException
getName
String getName()
getPath
String getPath()
getURL
String getURL()
lastModified
long lastModified()
Copyright © 2006-2007 Jayway AB. All Rights Reserved.