@Deprecated public class ClientMediaEntry extends ClientEntry
Modifier and Type | Field and Description |
---|---|
private byte[] |
bytes
Deprecated.
|
private java.io.InputStream |
inputStream
Deprecated.
|
private static org.slf4j.Logger |
LOG
Deprecated.
|
private static long |
serialVersionUID
Deprecated.
|
private java.lang.String |
slug
Deprecated.
|
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,
java.lang.String title,
java.lang.String slug,
java.lang.String contentType,
byte[] bytes)
Deprecated.
|
ClientMediaEntry(ClientAtomService service,
ClientCollection collection,
java.lang.String title,
java.lang.String slug,
java.lang.String contentType,
java.io.InputStream is)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
(package private) void |
addToCollection(ClientCollection col)
Deprecated.
Package access, to be called by DefaultClientCollection
|
java.io.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.
|
java.io.InputStream |
getInputStream()
Deprecated.
Get input stream for media resource associated with this entry.
|
java.lang.String |
getMediaLinkURI()
Deprecated.
Get media link URI for editing the media resource associated with this entry via HTTP PUT or
DELETE.
|
private java.io.InputStream |
getResourceAsStream()
Deprecated.
|
java.lang.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(java.io.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(java.lang.String slug)
Deprecated.
Get string to be used in file name of new media resource on server.
|
void |
update()
Deprecated.
Update entry on server.
|
addAuthentication, equals, getCollection, getContent, getEditURI, getHttpClient, remove, setCollection, 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
private static final long serialVersionUID
private static final org.slf4j.Logger LOG
private java.lang.String slug
private byte[] bytes
private java.io.InputStream inputStream
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, java.lang.String title, java.lang.String slug, java.lang.String contentType, java.io.InputStream is)
public ClientMediaEntry(ClientAtomService service, ClientCollection collection, java.lang.String title, java.lang.String slug, java.lang.String contentType, byte[] bytes)
public byte[] getBytes()
public void setBytes(byte[] bytes)
public java.io.InputStream getInputStream()
public void setInputStream(java.io.InputStream inputStream)
public java.lang.String getMediaLinkURI()
public java.io.InputStream getAsStream() throws ProponoException
ProponoException
private java.io.InputStream getResourceAsStream() throws ProponoException
ProponoException
public void update() throws ProponoException
update
in class ClientEntry
ProponoException
- If entry is a "partial" entry.void addToCollection(ClientCollection col) throws ProponoException
addToCollection
in class ClientEntry
ProponoException
public java.lang.String getSlug()
public void setSlug(java.lang.String slug)