FileDocCategorySizeDatePackage
PartSource.javaAPI DocAndroid 1.5 API2505Wed May 06 22:41:56 BST 2009com.android.internal.http.multipart

PartSource

public interface PartSource
An interface for providing access to data when posting MultiPart messages.
see
FilePart
author
Michael Becke
since
2.0

Fields Summary
Constructors Summary
Methods Summary
public java.io.InputStreamcreateInputStream()
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.

return
a new InputStream
throws
IOException if an error occurs when creating the InputStream

public java.lang.StringgetFileName()
Gets the name of the file this source represents.

return
the fileName used for posting a MultiPart file part

public longgetLength()
Gets the number of bytes contained in this source.

return
a value >= 0