javax.microedition.io.file
Interface FileConnection

All Superinterfaces:
Connection, InputConnection, OutputConnection, StreamConnection

public interface FileConnection
extends StreamConnection


Method Summary
 long availableSize()
           
 boolean canRead()
           
 boolean canWrite()
           
 void create()
           
 void delete()
           
 long directorySize(boolean arg1)
           
 boolean exists()
           
 long fileSize()
           
 String getName()
           
 String getPath()
           
 String getURL()
           
 boolean isDirectory()
           
 boolean isHidden()
           
 boolean isOpen()
           
 long lastModified()
           
 Enumeration list()
           
 Enumeration list(String arg1, boolean arg2)
           
 void mkdir()
           
 DataInputStream openDataInputStream()
           
 DataOutputStream openDataOutputStream()
           
 InputStream openInputStream()
           
 OutputStream openOutputStream()
           
 OutputStream openOutputStream(long arg1)
           
 void rename(String arg1)
           
 void setFileConnection(String arg1)
           
 void setHidden(boolean arg1)
           
 void setReadable(boolean arg1)
           
 void setWritable(boolean arg1)
           
 long totalSize()
           
 void truncate(long arg1)
           
 long usedSize()
           
 
Methods inherited from interface javax.microedition.io.Connection
close
 
Methods inherited from interface javax.microedition.io.Connection
close
 

Method Detail

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.