@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, setCollection
getAuthor, getBlog, getCategories, getContent, getDraft, getId, getModificationDate, getPermalink, getPublicationDate, getSummary, getTitle, setAuthor, setCategories, setContent, setDraft, setModificationDate, setPublicationDate, setSummary, setTitle, toString
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
delete, getAuthor, getBlog, getCategories, getContent, getDraft, getId, getModificationDate, getPermalink, getPublicationDate, getSummary, getTitle, getToken, setAuthor, setCategories, setContent, setDraft, setModificationDate, setPublicationDate, setSummary, setTitle
private AtomCollection collection
private byte[] bytes
AtomResource(AtomCollection collection, java.lang.String name, java.lang.String contentType, byte[] bytes) throws BlogClientException
BlogClientException
AtomResource(AtomCollection collection, ClientMediaEntry entry) throws BlogClientException
BlogClientException
AtomResource(AtomBlog blog, ClientMediaEntry entry) throws BlogClientException
BlogClientException
public java.lang.String getName()
getName
in interface BlogResource
byte[] getBytes()
public java.io.InputStream getAsStream() throws BlogClientException
getAsStream
in interface BlogResource
BlogClientException
public void save() throws BlogClientException
save
in interface BlogEntry
save
in class AtomEntry
BlogClientException
public void update(byte[] newBytes) throws BlogClientException
update
in interface BlogResource
BlogClientException
void copyFromRomeEntry(ClientEntry entry)
copyFromRomeEntry
in class AtomEntry