|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectc408h003.omnieditor.OmniEditor
Constructor Summary | |
OmniEditor()
Constructor of the OmniEditor |
Method Summary | |
java.lang.String[] |
download(int userId,
java.lang.String[] fileNames)
Sends the current editing state of the specified buffer to the user initiates this service. |
int |
find(int userId,
java.lang.String text,
java.lang.String fileName)
Finds a string in the specified editing buffer. |
java.lang.String[] |
getFileNames(int userId)
Gets all files available on the webserver |
void |
logout(int userId)
Logout the web service. |
static void |
main(java.lang.String[] args)
|
int |
register()
Gets the user id to start to use the Web service. |
java.lang.String[] |
update(int userId,
java.lang.String fileName)
Gets the difference of the file. |
void |
upload(int userId,
java.lang.String fileName,
java.lang.String fileContent)
Opens a channel with the editing state, such as the content of the local text buffer and the position of the cursor in the buffer. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public OmniEditor()
Method Detail |
public static void main(java.lang.String[] args)
public void upload(int userId, java.lang.String fileName, java.lang.String fileContent)
userId
- the user who want to upload a filefileName
- the name of the filefileContent
- the file contents of which the user want to sharepublic java.lang.String[] download(int userId, java.lang.String[] fileNames)
userId
- the user who wants to download a filefileNames
- the file namess of which the user want to get
public int find(int userId, java.lang.String text, java.lang.String fileName)
userId
- the user who want to search in the filetext
- the string to be looked for in a filefileName
- the file name in which the user want to find the string
text
in the filepublic int register()
public java.lang.String[] update(int userId, java.lang.String fileName)
userId
- the user's indentificationfileName
- the name of the file to be updated
public java.lang.String[] getFileNames(int userId)
userId
- the user's identification number
public void logout(int userId)
userId
- the user's identification number
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |