|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.stackmob.sdk.api.StackMobFile
public class StackMobFile
Represents binary data to be uploaded to StackMob and hosted on S3 as a file.
| Constructor Summary | |
|---|---|
StackMobFile(String url)
create a StackMobFile that just wraps an url from S3 |
|
StackMobFile(String contentType,
String fileName,
byte[] bytes)
create a StackMobFile with the information needed for the corresponding S3 file |
|
| Method Summary | |
|---|---|
String |
getBinaryString()
get a binary string suitable for posting to StackMob |
String |
getS3Url()
get the url on S3 where this file has been uploaded |
void |
setS3Url(String url)
set the url for this file once uploaded |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public StackMobFile(String contentType,
String fileName,
byte[] bytes)
contentType - The content type of the file to be createdfileName - The filename of the file to be createdbytes - The bytes of the file to be createdpublic StackMobFile(String url)
url - the S3 url| Method Detail |
|---|
public String getS3Url()
public void setS3Url(String url)
url - the url where the file is locatedpublic String getBinaryString()
public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||