|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.restfb.BinaryAttachment
public class BinaryAttachment
Represents a binary file that can be uploaded to Facebook.
Normally this would be a photo or video.
Method Summary | |
---|---|
boolean |
equals(Object that)
|
InputStream |
getData()
The attachment's data. |
String |
getFilename()
The attachment's filename. |
int |
hashCode()
|
String |
toString()
|
static BinaryAttachment |
with(String filename,
InputStream data)
Creates a binary attachment. |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public static BinaryAttachment with(String filename, InputStream data)
filename
- The attachment's filename.data
- The attachment's data.
IllegalArgumentException
- If data
is null
or filename
is
null
or blank.public int hashCode()
hashCode
in class Object
Object.hashCode()
public boolean equals(Object that)
equals
in class Object
Object.equals(java.lang.Object)
public String toString()
toString
in class Object
Object.toString()
public String getFilename()
public InputStream getData()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |