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 includeSubDirs)
           
 boolean exists()
           
 long fileSize()
           
 String getName()
           
 String getPath()
           
 String getURL()
           
 boolean isDirectory()
           
 boolean isHidden()
           
 boolean isOpen()
           
 long lastModified()
           
 Enumeration list()
           
 Enumeration list(String filter, boolean includeHidden)
           
 void mkdir()
           
 DataInputStream openDataInputStream()
           
 DataOutputStream openDataOutputStream()
           
 InputStream openInputStream()
           
 OutputStream openOutputStream()
           
 OutputStream openOutputStream(long byteOffset)
           
 void rename(String newName)
           
 void setFileConnection(String fileName)
           
 void setHidden(boolean hidden)
           
 void setReadable(boolean readable)
           
 void setWritable(boolean writable)
           
 long totalSize()
           
 void truncate(long byteOffset)
           
 long usedSize()
           
 
Methods inherited from interface javax.microedition.io.Connection
close
 

Method Detail

availableSize

long availableSize()
Throws:
SecurityException
IllegalModeException
ConnectionClosedException

canRead

boolean canRead()
Throws:
SecurityException
IllegalModeException
ConnectionClosedException

canWrite

boolean canWrite()
Throws:
SecurityException
IllegalModeException
ConnectionClosedException

create

void create()
            throws IOException
Throws:
SecurityException
IllegalModeException
IOException
ConnectionClosedException

delete

void delete()
            throws IOException
Throws:
SecurityException
IllegalModeException
IOException
ConnectionClosedException

directorySize

long directorySize(boolean includeSubDirs)
                   throws IOException
Throws:
SecurityException
IllegalModeException
IOException
ConnectionClosedException

exists

boolean exists()
Throws:
SecurityException
IllegalModeException
ConnectionClosedException

fileSize

long fileSize()
              throws IOException
Throws:
SecurityException
IllegalModeException
IOException
ConnectionClosedException

getName

String getName()

getPath

String getPath()

getURL

String getURL()

isDirectory

boolean isDirectory()
Throws:
SecurityException
IllegalModeException
ConnectionClosedException

isHidden

boolean isHidden()
Throws:
SecurityException
IllegalModeException
ConnectionClosedException

isOpen

boolean isOpen()

lastModified

long lastModified()
Throws:
SecurityException
IllegalModeException
ConnectionClosedException

list

Enumeration list()
                 throws IOException
Throws:
SecurityException
IllegalModeException
IOException
ConnectionClosedException

list

Enumeration list(String filter,
                 boolean includeHidden)
                 throws IOException
Throws:
SecurityException
IllegalModeException
IOException
ConnectionClosedException

mkdir

void mkdir()
           throws IOException
Throws:
SecurityException
IllegalModeException
IOException
ConnectionClosedException

openDataInputStream

DataInputStream openDataInputStream()
                                    throws IOException
Specified by:
openDataInputStream in interface InputConnection
Throws:
SecurityException
IllegalModeException
IOException

openDataOutputStream

DataOutputStream openDataOutputStream()
                                      throws IOException
Specified by:
openDataOutputStream in interface OutputConnection
Throws:
SecurityException
IllegalModeException
IOException

openInputStream

InputStream openInputStream()
                            throws IOException
Specified by:
openInputStream in interface InputConnection
Throws:
SecurityException
IllegalModeException
IOException

openOutputStream

OutputStream openOutputStream()
                              throws IOException
Specified by:
openOutputStream in interface OutputConnection
Throws:
SecurityException
IllegalModeException
IOException

openOutputStream

OutputStream openOutputStream(long byteOffset)
                              throws IOException
Throws:
SecurityException
IllegalModeException
IOException
IllegalArgumentException

rename

void rename(String newName)
            throws IOException
Throws:
SecurityException
IllegalModeException
IOException
ConnectionClosedException
IllegalArgumentException
NullPointerException

setFileConnection

void setFileConnection(String fileName)
                       throws IOException
Throws:
SecurityException
IOException
ConnectionClosedException
IllegalArgumentException
NullPointerException

setHidden

void setHidden(boolean hidden)
               throws IOException
Throws:
SecurityException
IllegalModeException
IOException
ConnectionClosedException

setReadable

void setReadable(boolean readable)
                 throws IOException
Throws:
SecurityException
IllegalModeException
IOException
ConnectionClosedException

setWritable

void setWritable(boolean writable)
                 throws IOException
Throws:
SecurityException
IllegalModeException
IOException
ConnectionClosedException

totalSize

long totalSize()
Throws:
SecurityException
IllegalModeException
ConnectionClosedException

truncate

void truncate(long byteOffset)
              throws IOException
Throws:
SecurityException
IllegalModeException
IOException
ConnectionClosedException
IllegalArgumentException

usedSize

long usedSize()
Throws:
SecurityException
IllegalModeException
ConnectionClosedException


Copyright © 2007-2010. All Rights Reserved.