net.netheos.pcsapi.request
Class JSONBody
java.lang.Object
org.apache.http.entity.mime.content.AbstractContentBody
net.netheos.pcsapi.request.JSONBody
- All Implemented Interfaces:
- org.apache.http.entity.mime.content.ContentBody, org.apache.http.entity.mime.content.ContentDescriptor
public class JSONBody
- extends org.apache.http.entity.mime.content.AbstractContentBody
| Methods inherited from class org.apache.http.entity.mime.content.AbstractContentBody |
getMediaType, getMimeType, getSubType |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JSONBody
public JSONBody(org.json.JSONObject json,
String filename)
JSONBody
public JSONBody(org.json.JSONArray json,
String filename)
getFilename
public String getFilename()
writeTo
public void writeTo(OutputStream out)
throws IOException
- Throws:
IOException
getCharset
public String getCharset()
getTransferEncoding
public String getTransferEncoding()
getContentLength
public long getContentLength()
Copyright © 2014. All Rights Reserved.