net.asplode.tumblr
Class VideoPost

java.lang.Object
  extended by net.asplode.tumblr.Post
      extended by net.asplode.tumblr.VideoPost

public class VideoPost
extends Post


Nested Class Summary
 
Nested classes/interfaces inherited from class net.asplode.tumblr.Post
Post.State
 
Constructor Summary
VideoPost()
           
 
Method Summary
 void setCaption(java.lang.String caption)
           
 void setEmbedText(java.lang.String embed)
           
 void setSourceFile(java.io.File video)
           
 
Methods inherited from class net.asplode.tumblr.Post
postToTumblr, postToTumblr, setBlog, setCredentials, setGenerator, setPostUrl, setPrivate, setPublishOn, setSlug, setState, setTags, setTwitter
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VideoPost

public VideoPost()
Method Detail

setCaption

public void setCaption(java.lang.String caption)
                throws java.io.UnsupportedEncodingException
Parameters:
caption - Caption. Optional. HTML allowed.
Throws:
java.io.UnsupportedEncodingException

setSourceFile

public void setSourceFile(java.io.File video)
                   throws java.io.UnsupportedEncodingException
Parameters:
video - Video to upload.
Throws:
java.io.UnsupportedEncodingException

setEmbedText

public void setEmbedText(java.lang.String embed)
                  throws java.io.UnsupportedEncodingException
Parameters:
embed - HTML to embed video or the URL of a YouTube video.
Throws:
java.io.UnsupportedEncodingException