public class TextDocument extends Object
Constructor and Description |
---|
TextDocument(String filename)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
String |
save()
Saves document with filename as a Title, and empty Description to Root
folder
|
String |
save(String title)
Saves document with empty Description to Root folder
|
String |
save(String title,
String description)
Saves document to Root folder
|
String |
save(String title,
String description,
String folderId)
Saves document to given folder
|
void |
write(String data)
Appends temporary file.
|
public void write(String data) throws Exception
data
- text to writeException
- Could not write to the temporary file, or Document has
been already saved.public String save() throws Exception
Exception
- Could not upload the Document, or Document has been
already saved.public String save(String title) throws Exception
title
- document titleException
- Could not upload the Document, or Document has been
already saved.public String save(String title, String description) throws Exception
title
- document titledescription
- document descriptionException
- Could not upload the Document, or Document has been
already saved.public String save(String title, String description, String folderId) throws Exception
title
- document title. NULL - filename as a titledescription
- document descriptionfolderId
- given folder ID. "0" or NULL - Root folder.Exception
- Could not upload the Document, or Document has been
already saved.