@Deprecated public class ClientMediaEntry extends ClientEntry
partial
Constructor and Description |
---|
ClientMediaEntry(ClientAtomService service,
ClientCollection collection)
Deprecated.
Create ClientMedieEntry for service and collection.
|
ClientMediaEntry(ClientAtomService service,
ClientCollection collection,
Entry entry,
boolean partial)
Deprecated.
|
ClientMediaEntry(ClientAtomService service,
ClientCollection collection,
String title,
String slug,
String contentType,
byte[] bytes)
Deprecated.
|
ClientMediaEntry(ClientAtomService service,
ClientCollection collection,
String title,
String slug,
String contentType,
InputStream is)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
InputStream |
getAsStream()
Deprecated.
Get media resource as an InputStream, should work regardless of whether you set the media
resource data as an InputStream or as a byte array.
|
byte[] |
getBytes()
Deprecated.
Get bytes of media resource associated with entry.
|
InputStream |
getInputStream()
Deprecated.
Get input stream for media resource associated with this entry.
|
String |
getMediaLinkURI()
Deprecated.
Get media link URI for editing the media resource associated with this entry via HTTP PUT or
DELETE.
|
String |
getSlug()
Deprecated.
Set string to be used in file name of new media resource on server.
|
void |
setBytes(byte[] bytes)
Deprecated.
Set media resource data as a byte array, don't try this if you have already set the data as
an InputStream.
|
void |
setInputStream(InputStream inputStream)
Deprecated.
Set media resource data as an input stream, don't try this if you have already set the data
as a byte array.
|
void |
setSlug(String slug)
Deprecated.
Get string to be used in file name of new media resource on server.
|
void |
update()
Deprecated.
Update entry on server.
|
equals, getContent, getEditURI, remove, setContent, setContent, setCreated
clone, findRelatedLink, getAlternateLinks, getAuthors, getCategories, getContents, getContributors, getCreated, getForeignMarkup, getId, getIssued, getModified, getModule, getModules, getOtherLinks, getPublished, getRights, getSource, getSummary, getTitle, getTitleEx, getUpdated, getXmlBase, hashCode, isMediaEntry, setAlternateLinks, setAuthors, setCategories, setContents, setContributors, setForeignMarkup, setId, setIssued, setModified, setModules, setOtherLinks, setPublished, setRights, setSource, setSummary, setTitle, setTitleEx, setUpdated, setXmlBase, toString
public ClientMediaEntry(ClientAtomService service, ClientCollection collection)
public ClientMediaEntry(ClientAtomService service, ClientCollection collection, Entry entry, boolean partial) throws ProponoException
ProponoException
public ClientMediaEntry(ClientAtomService service, ClientCollection collection, String title, String slug, String contentType, InputStream is)
public ClientMediaEntry(ClientAtomService service, ClientCollection collection, String title, String slug, String contentType, byte[] bytes)
public byte[] getBytes()
public void setBytes(byte[] bytes)
public InputStream getInputStream()
public void setInputStream(InputStream inputStream)
public String getMediaLinkURI()
public InputStream getAsStream() throws ProponoException
ProponoException
public void update() throws ProponoException
update
in class ClientEntry
ProponoException
- If entry is a "partial" entry.public String getSlug()
public void setSlug(String slug)
Copyright © 2023. All rights reserved.