public interface

PartSource

com.ning.http.multipart.PartSource
Known Indirect Subclasses

Class Overview

This class is an adaptation of the Apache HttpClient implementationhttp://hc.apache.org/httpclient-3.x/

Summary

Public Methods
abstract InputStream createInputStream()
Gets a new InputStream for reading this source.
abstract String getFileName()
Gets the name of the file this source represents.
abstract long getLength()
Gets the number of bytes contained in this source.

Public Methods

public abstract InputStream createInputStream ()

Gets a new InputStream for reading this source. This method can be called more than once and should therefore return a new stream every time.

Returns
  • a new InputStream
Throws
IOException if an error occurs when creating the InputStream

public abstract String getFileName ()

Gets the name of the file this source represents.

Returns
  • the fileName used for posting a MultiPart file part

public abstract long getLength ()

Gets the number of bytes contained in this source.

Returns
  • a value >= 0