public ClientMediaEntry createMediaEntry ( final String title , final String slug , final String contentType , final byte [ ] bytes ) throws ProponoException { if ( ! isWritable ( ) ) { throw new ProponoException ( "Collection is not writable" ) ; } return new ClientMediaEntry ( service , this , title , slug , contentType , bytes ) ; }
Create new media entry assocaited with collection but do not save . server . Depending on the Atom server you may or may not be able to persist the properties of the entry that is returned .