Author: dims
Date: Tue Mar 4 10:46:29 2008
New Revision: 633582
URL: http://svn.apache.org/viewvc?rev=633582&view=rev
Log:
add more constructors
Modified:
webservices/commons/trunk/modules/axiom/modules/axiom-api/src/main/java/org/apache/axiom/attachments/Attachments.java
Modified:
webservices/commons/trunk/modules/axiom/modules/axiom-api/src/main/java/org/apache/axiom/attachments/Attachments.java
URL:
http://svn.apache.org/viewvc/webservices/commons/trunk/modules/axiom/modules/axiom-api/src/main/java/org/apache/axiom/attachments/Attachments.java?rev=633582&r1=633581&r2=633582&view=diff
==============================================================================
---
webservices/commons/trunk/modules/axiom/modules/axiom-api/src/main/java/org/apache/axiom/attachments/Attachments.java
(original)
+++
webservices/commons/trunk/modules/axiom/modules/axiom-api/src/main/java/org/apache/axiom/attachments/Attachments.java
Tue Mar 4 10:46:29 2008
@@ -135,10 +135,10 @@
* @param attachmentRepoDir
* @throws OMException
*/
- public Attachments(InputStream inStream, String contentTypeString,
+ public Attachments(LifecycleManager manager, InputStream inStream, String
contentTypeString,
boolean fileCacheEnable, String attachmentRepoDir,
String fileThreshold) throws OMException {
- this(inStream, contentTypeString, fileCacheEnable, attachmentRepoDir,
fileThreshold, 0);
+ this(manager, inStream, contentTypeString, fileCacheEnable,
attachmentRepoDir, fileThreshold, 0);
}
/**
@@ -153,8 +153,9 @@
* @param contentLength
* @throws OMException
*/
- public Attachments(InputStream inStream, String contentTypeString, boolean
fileCacheEnable,
+ public Attachments(LifecycleManager manager, InputStream inStream, String
contentTypeString, boolean fileCacheEnable,
String attachmentRepoDir, String fileThreshold, int contentLength)
throws OMException {
+ this.manager = manager;
this.contentLength = contentLength;
this.attachmentRepoDir = attachmentRepoDir;
this.fileCacheEnable = fileCacheEnable;
@@ -238,6 +239,39 @@
}
/**
+ * Moves the pointer to the beginning of the first MIME part. Reads till
first MIME boundary is
+ * found or end of stream is reached.
+ *
+ * @param inStream
+ * @param contentTypeString
+ * @param fileCacheEnable
+ * @param attachmentRepoDir
+ * @throws OMException
+ */
+ public Attachments(InputStream inStream, String contentTypeString,
+ boolean fileCacheEnable, String attachmentRepoDir,
+ String fileThreshold) throws OMException {
+ this(null, inStream, contentTypeString, fileCacheEnable,
attachmentRepoDir, fileThreshold, 0);
+ }
+
+ /**
+ * Moves the pointer to the beginning of the first MIME part. Reads
+ * till first MIME boundary is found or end of stream is reached.
+ *
+ * @param inStream
+ * @param contentTypeString
+ * @param fileCacheEnable
+ * @param attachmentRepoDir
+ * @param fileThreshold
+ * @param contentLength
+ * @throws OMException
+ */
+ public Attachments(InputStream inStream, String contentTypeString, boolean
fileCacheEnable,
+ String attachmentRepoDir, String fileThreshold, int contentLength)
throws OMException {
+ this(null, inStream, contentTypeString, fileCacheEnable,
+ attachmentRepoDir, fileThreshold, contentLength);
+ }
+ /**
* Sets file cache to false.
*
* @param inStream
@@ -246,7 +280,7 @@
*/
public Attachments(InputStream inStream, String contentTypeString)
throws OMException {
- this(inStream, contentTypeString, false, null, null);
+ this(null, inStream, contentTypeString, false, null, null);
}
/**
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]