1
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Frameset//EN""http://www.w3.org/TR/REC-html40/frameset.dtd">
5
<!-- Generated by javadoc on Sun Oct 10 17:41:05 EDT 2004 -->
7
HttpClient 2.0.2 API: Interface PartSource
9
<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../../../stylesheet.css" TITLE="Style">
11
<BODY BGCOLOR="white">
13
<!-- ========== START OF NAVBAR ========== -->
14
<A NAME="navbar_top"><!-- --></A>
15
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0">
17
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
18
<A NAME="navbar_top_firstrow"><!-- --></A>
19
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3">
20
<TR ALIGN="center" VALIGN="top">
21
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD>
22
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
23
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD>
24
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/PartSource.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD>
25
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
26
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
27
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
28
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
32
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
38
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
39
PREV CLASS
40
NEXT CLASS</FONT></TD>
41
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
42
<A HREF="../../../../../../index.html" TARGET="_top"><B>FRAMES</B></A>
43
<A HREF="PartSource.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD>
46
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
47
SUMMARY: INNER | FIELD | CONSTR | <A HREF="#method_summary">METHOD</A></FONT></TD>
48
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
49
DETAIL: FIELD | CONSTR | <A HREF="#method_detail">METHOD</A></FONT></TD>
52
<!-- =========== END OF NAVBAR =========== -->
55
<!-- ======== START OF CLASS DATA ======== -->
58
org.apache.commons.httpclient.methods.multipart</FONT>
60
Interface PartSource</H2>
62
<DT><B>All Known Implementing Classes:</B> <DD><A HREF="../../../../../../org/apache/commons/httpclient/methods/multipart/ByteArrayPartSource.html">ByteArrayPartSource</A>, <A HREF="../../../../../../org/apache/commons/httpclient/methods/multipart/FilePartSource.html">FilePartSource</A></DD>
66
<DT>public interface <B>PartSource</B></DL>
69
An interface for providing access to data when posting MultiPart messages.
72
<DT><B>Since: </B><DD>2.0</DD>
73
<DT><B>Author: </B><DD><a href="mailto:becke@u.washington.edu">Michael Becke</a></DD>
74
<DT><B>See Also: </B><DD><A HREF="../../../../../../org/apache/commons/httpclient/methods/multipart/FilePart.html"><CODE>FilePart</CODE></A></DL>
78
<!-- ======== INNER CLASS SUMMARY ======== -->
81
<!-- =========== FIELD SUMMARY =========== -->
84
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
87
<!-- ========== METHOD SUMMARY =========== -->
89
<A NAME="method_summary"><!-- --></A>
90
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
91
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
92
<TD COLSPAN=2><FONT SIZE="+2">
93
<B>Method Summary</B></FONT></TD>
95
<TR BGCOLOR="white" CLASS="TableRowColor">
96
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
97
<CODE> <A HREF="http://java.sun.com/j2se/1.4.1/docs/api/java/io/InputStream.html">InputStream</A></CODE></FONT></TD>
98
<TD><CODE><B><A HREF="../../../../../../org/apache/commons/httpclient/methods/multipart/PartSource.html#createInputStream()">createInputStream</A></B>()</CODE>
101
Gets a new InputStream for reading this source.</TD>
103
<TR BGCOLOR="white" CLASS="TableRowColor">
104
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
105
<CODE> <A HREF="http://java.sun.com/j2se/1.4.1/docs/api/java/lang/String.html">String</A></CODE></FONT></TD>
106
<TD><CODE><B><A HREF="../../../../../../org/apache/commons/httpclient/methods/multipart/PartSource.html#getFileName()">getFileName</A></B>()</CODE>
109
Gets the name of the file this source represents.</TD>
111
<TR BGCOLOR="white" CLASS="TableRowColor">
112
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
113
<CODE> long</CODE></FONT></TD>
114
<TD><CODE><B><A HREF="../../../../../../org/apache/commons/httpclient/methods/multipart/PartSource.html#getLength()">getLength</A></B>()</CODE>
117
Gets the number of bytes contained in this source.</TD>
123
<!-- ============ FIELD DETAIL =========== -->
126
<!-- ========= CONSTRUCTOR DETAIL ======== -->
129
<!-- ============ METHOD DETAIL ========== -->
131
<A NAME="method_detail"><!-- --></A>
132
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
133
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
134
<TD COLSPAN=1><FONT SIZE="+2">
135
<B>Method Detail</B></FONT></TD>
139
<A NAME="getLength()"><!-- --></A><H3>
142
public long <B>getLength</B>()</PRE>
144
<DD>Gets the number of bytes contained in this source.<DD><DL>
145
<DT><B>Returns:</B><DD>a value >= 0</DL>
150
<A NAME="getFileName()"><!-- --></A><H3>
153
public <A HREF="http://java.sun.com/j2se/1.4.1/docs/api/java/lang/String.html">String</A> <B>getFileName</B>()</PRE>
155
<DD>Gets the name of the file this source represents.<DD><DL>
156
<DT><B>Returns:</B><DD>the fileName used for posting a MultiPart file part</DL>
161
<A NAME="createInputStream()"><!-- --></A><H3>
162
createInputStream</H3>
164
public <A HREF="http://java.sun.com/j2se/1.4.1/docs/api/java/io/InputStream.html">InputStream</A> <B>createInputStream</B>()
165
throws <A HREF="http://java.sun.com/j2se/1.4.1/docs/api/java/io/IOException.html">IOException</A></PRE>
167
<DD>Gets a new InputStream for reading this source. This method can be
168
called more than once and should therefore return a new stream every
170
<DT><B>Returns:</B><DD>a new InputStream<DT><B>Throws:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.4.1/docs/api/java/io/IOException.html">IOException</A></CODE> - if an error occurs when creating the InputStream</DL>
173
<!-- ========= END OF CLASS DATA ========= -->
176
<!-- ========== START OF NAVBAR ========== -->
177
<A NAME="navbar_bottom"><!-- --></A>
178
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0">
180
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
181
<A NAME="navbar_bottom_firstrow"><!-- --></A>
182
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3">
183
<TR ALIGN="center" VALIGN="top">
184
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD>
185
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
186
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD>
187
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/PartSource.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD>
188
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
189
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
190
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
191
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
195
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
201
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
202
PREV CLASS
203
NEXT CLASS</FONT></TD>
204
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
205
<A HREF="../../../../../../index.html" TARGET="_top"><B>FRAMES</B></A>
206
<A HREF="PartSource.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD>
209
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
210
SUMMARY: INNER | FIELD | CONSTR | <A HREF="#method_summary">METHOD</A></FONT></TD>
211
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
212
DETAIL: FIELD | CONSTR | <A HREF="#method_detail">METHOD</A></FONT></TD>
215
<!-- =========== END OF NAVBAR =========== -->
218
Copyright © 2001-2004 Apache Software Foundation. All Rights Reserved.