@Deprecated public class AtomResource extends AtomEntry implements BlogResource
BlogEntry.Category, BlogEntry.Content, BlogEntry.Person| Modifier and Type | Field and Description |
|---|---|
private byte[] |
bytes
Deprecated.
|
private AtomCollection |
collection
Deprecated.
|
author, categories, content, draft, id, modificationDate, permalink, publicationDate, summary, title| Constructor and Description |
|---|
AtomResource(AtomBlog blog,
ClientMediaEntry entry)
Deprecated.
|
AtomResource(AtomCollection collection,
ClientMediaEntry entry)
Deprecated.
|
AtomResource(AtomCollection collection,
java.lang.String name,
java.lang.String contentType,
byte[] bytes)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
(package private) void |
copyFromRomeEntry(ClientEntry entry)
Deprecated.
|
java.io.InputStream |
getAsStream()
Deprecated.
Get resource as stream, using content.src as URL
|
(package private) byte[] |
getBytes()
Deprecated.
|
java.lang.String |
getName()
Deprecated.
Get resource name (name is required)
|
void |
save()
Deprecated.
Save this entry to it's collection.
|
void |
update(byte[] newBytes)
Deprecated.
Update resource by immediately uploading new bytes to server
|
copyToRomeEntry, delete, equals, getCollection, getToken, setCollectiongetAuthor, getBlog, getCategories, getContent, getDraft, getId, getModificationDate, getPermalink, getPublicationDate, getSummary, getTitle, setAuthor, setCategories, setContent, setDraft, setModificationDate, setPublicationDate, setSummary, setTitle, toStringclone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitdelete, getAuthor, getBlog, getCategories, getContent, getDraft, getId, getModificationDate, getPermalink, getPublicationDate, getSummary, getTitle, getToken, setAuthor, setCategories, setContent, setDraft, setModificationDate, setPublicationDate, setSummary, setTitleprivate AtomCollection collection
private byte[] bytes
AtomResource(AtomCollection collection, java.lang.String name, java.lang.String contentType, byte[] bytes) throws BlogClientException
BlogClientExceptionAtomResource(AtomCollection collection, ClientMediaEntry entry) throws BlogClientException
BlogClientExceptionAtomResource(AtomBlog blog, ClientMediaEntry entry) throws BlogClientException
BlogClientExceptionpublic java.lang.String getName()
getName in interface BlogResourcebyte[] getBytes()
public java.io.InputStream getAsStream()
throws BlogClientException
getAsStream in interface BlogResourceBlogClientExceptionpublic void save()
throws BlogClientException
save in interface BlogEntrysave in class AtomEntryBlogClientExceptionpublic void update(byte[] newBytes)
throws BlogClientException
update in interface BlogResourceBlogClientExceptionvoid copyFromRomeEntry(ClientEntry entry)
copyFromRomeEntry in class AtomEntry