retrofit.mime
Interface TypedInput

All Known Implementing Classes:
TypedByteArray, TypedFile, TypedString

public interface TypedInput

Binary data with an associated mime type.

Author:
Jake Wharton ([email protected])

Method Summary
 InputStream in()
          Read bytes as stream.
 long length()
          Length in bytes.
 String mimeType()
          Returns the mime type.
 

Method Detail

mimeType

String mimeType()
Returns the mime type.


length

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


in

InputStream in()
               throws IOException
Read bytes as stream. Unless otherwise specified, this method may only be called once. It is the responsibility of the caller to close the stream.

Throws:
IOException


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