net.netheos.pcsapi.request
Class JSONBody

java.lang.Object
  extended by org.apache.http.entity.mime.content.AbstractContentBody
      extended by 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


Constructor Summary
JSONBody(org.json.JSONArray json, String filename)
           
JSONBody(org.json.JSONObject json, String filename)
           
 
Method Summary
 String getCharset()
           
 long getContentLength()
           
 String getFilename()
           
 String getTransferEncoding()
           
 void writeTo(OutputStream out)
           
 
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
 

Constructor Detail

JSONBody

public JSONBody(org.json.JSONObject json,
                String filename)

JSONBody

public JSONBody(org.json.JSONArray json,
                String filename)
Method Detail

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.