retrofit.mime
Interface TypedOutput

All Known Implementing Classes:
FormUrlEncodedTypedOutput, MultipartTypedOutput, TypedByteArray, TypedFile, TypedString

public interface TypedOutput

Binary data with an associated mime type.

Author:
Bob Lee ([email protected])

Method Summary
 String fileName()
          Original filename.
 long length()
          Length in bytes or -1 if unknown.
 String mimeType()
          Returns the mime type.
 void writeTo(OutputStream out)
          Writes these bytes to the given output stream.
 

Method Detail

fileName

String fileName()
Original filename. Used only for multipart requests, may be null.


mimeType

String mimeType()
Returns the mime type.


length

long length()
Length in bytes or -1 if unknown.


writeTo

void writeTo(OutputStream out)
             throws IOException
Writes these bytes to the given output stream.

Throws:
IOException


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