/** * FilePart Constructor. * * @param name the name of the file part * @param fileName the file name * @param file the file to post * * @throws FileNotFoundException if the <i>file</i> is not a normal * file or if it is not readable. */ public FilePart(String name, String fileName, File file) throws FileNotFoundException { this(name, new FilePartSource(fileName, file), null, null); }
/** * FilePart Constructor. * * @param name the name of the file part * @param file the file to post * * @throws FileNotFoundException if the <i>file</i> is not a normal * file or if it is not readable. */ public FilePart(String name, File file) throws FileNotFoundException { this(name, new FilePartSource(file), null, null); }
/** * FilePart Constructor. * * @param name the name of the file part * @param file the file to post * @param contentType the content type for this part, if <code>null</code> the * {@link #DEFAULT_CONTENT_TYPE default} is used * @param charset the charset encoding for this part, if <code>null</code> the * {@link #DEFAULT_CHARSET default} is used * * @throws FileNotFoundException if the <i>file</i> is not a normal * file or if it is not readable. */ public FilePart(String name, File file, String contentType, String charset) throws FileNotFoundException { this(name, new FilePartSource(file), contentType, charset); }
/** * FilePart Constructor. * * @param name the name of the file part * @param fileName the file name * @param file the file to post * @param contentType the content type for this part, if <code>null</code> the * {@link #DEFAULT_CONTENT_TYPE default} is used * @param charset the charset encoding for this part, if <code>null</code> the * {@link #DEFAULT_CHARSET default} is used * * @throws FileNotFoundException if the <i>file</i> is not a normal * file or if it is not readable. */ public FilePart(String name, String fileName, File file, String contentType, String charset) throws FileNotFoundException { this(name, new FilePartSource(fileName, file), contentType, charset); }
/** * FilePart Constructor. * * @param name the name of the file part * @param file the file to post * * @throws FileNotFoundException if the <i>file</i> is not a normal * file or if it is not readable. */ public FilePart(String name, File file) throws FileNotFoundException { this(name, new FilePartSource(file), null, null); }
/** * FilePart Constructor. * * @param name the name of the file part * @param file the file to post * * @throws FileNotFoundException if the <i>file</i> is not a normal * file or if it is not readable. */ public FilePart(String name, File file) throws FileNotFoundException { this(name, new FilePartSource(file), null, null); }
/** * FilePart Constructor. * * @param name the name of the file part * @param fileName the file name * @param file the file to post * * @throws FileNotFoundException if the <i>file</i> is not a normal * file or if it is not readable. */ public FilePart(String name, String fileName, File file) throws FileNotFoundException { this(name, new FilePartSource(fileName, file), null, null); }
/** * FilePart Constructor. * * @param name the name of the file part * @param file the file to post * * @throws FileNotFoundException if the <i>file</i> is not a normal * file or if it is not readable. */ public FilePart(String name, File file) throws FileNotFoundException { this(name, new FilePartSource(file), null, null); }
/** * FilePart Constructor. * * @param name the name of the file part * @param file the file to post * * @throws FileNotFoundException if the <i>file</i> is not a normal * file or if it is not readable. */ public FilePart(String name, File file) throws FileNotFoundException { this(name, new FilePartSource(file), null, null); }
/** * FilePart Constructor. * * @param name the name of the file part * @param fileName the file name * @param file the file to post * * @throws FileNotFoundException if the <i>file</i> is not a normal * file or if it is not readable. */ public FilePart(String name, String fileName, File file) throws FileNotFoundException { this(name, new FilePartSource(fileName, file), null, null); }
/** * FilePart Constructor. * * @param name the name of the file part * @param fileName the file name * @param file the file to post * * @throws FileNotFoundException if the <i>file</i> is not a normal * file or if it is not readable. */ public FilePart(String name, String fileName, File file) throws FileNotFoundException { this(name, new FilePartSource(fileName, file), null, null); }
/** * FilePart Constructor. * * @param name the name of the file part * @param fileName the file name * @param file the file to post * * @throws FileNotFoundException if the <i>file</i> is not a normal * file or if it is not readable. */ public FilePart(String name, String fileName, File file) throws FileNotFoundException { this(name, new FilePartSource(fileName, file), null, null); }
/** * FilePart Constructor. * * @param name the name of the file part * @param fileName the file name * @param file the file to post * @param contentType the content type for this part, if <code>null</code> the * {@link #DEFAULT_CONTENT_TYPE default} is used * @param charset the charset encoding for this part, if <code>null</code> the * {@link #DEFAULT_CHARSET default} is used * * @throws FileNotFoundException if the <i>file</i> is not a normal * file or if it is not readable. */ public FilePart(String name, String fileName, File file, String contentType, String charset) throws FileNotFoundException { this(name, new FilePartSource(fileName, file), contentType, charset); }
/** * FilePart Constructor. * * @param name the name of the file part * @param fileName the file name * @param file the file to post * @param contentType the content type for this part, if <code>null</code> the * {@link #DEFAULT_CONTENT_TYPE default} is used * @param charset the charset encoding for this part, if <code>null</code> the * {@link #DEFAULT_CHARSET default} is used * * @throws FileNotFoundException if the <i>file</i> is not a normal * file or if it is not readable. */ public FilePart(String name, String fileName, File file, String contentType, String charset) throws FileNotFoundException { this(name, new FilePartSource(fileName, file), contentType, charset); }
/** * FilePart Constructor. * * @param name the name of the file part * @param file the file to post * @param contentType the content type for this part, if <code>null</code> the * {@link #DEFAULT_CONTENT_TYPE default} is used * @param charset the charset encoding for this part, if <code>null</code> the * {@link #DEFAULT_CHARSET default} is used * * @throws FileNotFoundException if the <i>file</i> is not a normal * file or if it is not readable. */ public FilePart(String name, File file, String contentType, String charset) throws FileNotFoundException { this(name, new FilePartSource(file), contentType, charset); }
/** * FilePart Constructor. * * @param name the name of the file part * @param file the file to post * @param contentType the content type for this part, if <code>null</code> the * {@link #DEFAULT_CONTENT_TYPE default} is used * @param charset the charset encoding for this part, if <code>null</code> the * {@link #DEFAULT_CHARSET default} is used * * @throws FileNotFoundException if the <i>file</i> is not a normal * file or if it is not readable. */ public FilePart(String name, File file, String contentType, String charset) throws FileNotFoundException { this(name, new FilePartSource(file), contentType, charset); }
/** * FilePart Constructor. * * @param name the name of the file part * @param file the file to post * @param contentType the content type for this part, if <code>null</code> the * {@link #DEFAULT_CONTENT_TYPE default} is used * @param charset the charset encoding for this part, if <code>null</code> the * {@link #DEFAULT_CHARSET default} is used * * @throws FileNotFoundException if the <i>file</i> is not a normal * file or if it is not readable. */ public FilePart(String name, File file, String contentType, String charset) throws FileNotFoundException { this(name, new FilePartSource(file), contentType, charset); }
/** * FilePart Constructor. * * @param name the name of the file part * @param file the file to post * @param contentType the content type for this part, if <code>null</code> the * {@link #DEFAULT_CONTENT_TYPE default} is used * @param charset the charset encoding for this part, if <code>null</code> the * {@link #DEFAULT_CHARSET default} is used * * @throws FileNotFoundException if the <i>file</i> is not a normal * file or if it is not readable. */ public FilePart(String name, File file, String contentType, String charset) throws FileNotFoundException { this(name, new FilePartSource(file), contentType, charset); }
/** * FilePart Constructor. * * @param name the name of the file part * @param fileName the file name * @param file the file to post * @param contentType the content type for this part, if <code>null</code> the * {@link #DEFAULT_CONTENT_TYPE default} is used * @param charset the charset encoding for this part, if <code>null</code> the * {@link #DEFAULT_CHARSET default} is used * * @throws FileNotFoundException if the <i>file</i> is not a normal * file or if it is not readable. */ public FilePart(String name, String fileName, File file, String contentType, String charset) throws FileNotFoundException { this(name, new FilePartSource(fileName, file), contentType, charset); }
/** * FilePart Constructor. * * @param name the name of the file part * @param fileName the file name * @param file the file to post * @param contentType the content type for this part, if <code>null</code> the * {@link #DEFAULT_CONTENT_TYPE default} is used * @param charset the charset encoding for this part, if <code>null</code> the * {@link #DEFAULT_CHARSET default} is used * * @throws FileNotFoundException if the <i>file</i> is not a normal * file or if it is not readable. */ public FilePart(String name, String fileName, File file, String contentType, String charset) throws FileNotFoundException { this(name, new FilePartSource(fileName, file), contentType, charset); }