com.squareup.mimecraft
Class Multipart

java.lang.Object
  extended by com.squareup.mimecraft.Multipart
All Implemented Interfaces:
Part

public final class Multipart
extends Object
implements Part

RFC 2387-compliant encoded data.


Nested Class Summary
static class Multipart.Builder
          Fluent API to build Multipart instances.
static class Multipart.Type
          Multipart MIME types.
 
Method Summary
 Map<String,String> getHeaders()
          HTTP headers.
 void writeBodyTo(OutputStream stream)
          Write request data to the specified stream.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getHeaders

public Map<String,String> getHeaders()
Description copied from interface: Part
HTTP headers.

Specified by:
getHeaders in interface Part

writeBodyTo

public void writeBodyTo(OutputStream stream)
                 throws IOException
Description copied from interface: Part
Write request data to the specified stream. For best performance use a BufferedOutputStream.

Specified by:
writeBodyTo in interface Part
Throws:
IOException


Copyright © 2013 Square, Inc.. All Rights Reserved.