|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectpeer2me.message.FileObject
public abstract class FileObject
Parent class of the two childclasses SendFileObject and ReceivedFileObject A FileObject can be attached to a Message
SendFileObject
,
ReceivedFileObject
,
Message
Constructor Summary | |
---|---|
FileObject(java.lang.String fullPathToFile)
A constructor that takes the full path of a file including the file itself as an argument |
Method Summary | |
---|---|
java.lang.String |
getFileName()
Returns the name of the file that is assosiated with this FileObject |
long |
getFileSize()
Returns the size of the file that is assosiated with this FileObject |
java.lang.String |
getFullPathToFile()
Returns the full path to the file, including the filename |
boolean |
isAccessGranted()
Returns true if the user has granted the Midlet access to the filesystem. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FileObject(java.lang.String fullPathToFile) throws FileNotFoundException
fullPathToFile
- Must be the full path to a file, for instance:
file:///SDCard/images/animal.jpg
This method will block when Connector.open(java.lang.String)
is called.
The Midlet will then automatically ask the user for permission to access the local filesystem. When
access is granted, a connection is established.
FileNotFoundException
- If the file is not found on the local deviceMethod Detail |
---|
public java.lang.String getFileName()
animal.jpg
public long getFileSize()
public java.lang.String getFullPathToFile()
file:///SDCard/images/animal.jpg
public boolean isAccessGranted()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |