You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ws.apache.org by ve...@apache.org on 2011/08/27 16:11:24 UTC
svn commit: r1162358 -
/webservices/commons/trunk/modules/axiom/modules/axiom-api/src/main/java/org/apache/axiom/om/util/TextHelper.java
Author: veithen
Date: Sat Aug 27 14:11:24 2011
New Revision: 1162358
URL: http://svn.apache.org/viewvc?rev=1162358&view=rev
Log:
Deprecated a couple of methods originally introduced by AXIOM-337 but that have never been implemented completely (and that don't appear to be used by downstreams projects).
Modified:
webservices/commons/trunk/modules/axiom/modules/axiom-api/src/main/java/org/apache/axiom/om/util/TextHelper.java
Modified: webservices/commons/trunk/modules/axiom/modules/axiom-api/src/main/java/org/apache/axiom/om/util/TextHelper.java
URL: http://svn.apache.org/viewvc/webservices/commons/trunk/modules/axiom/modules/axiom-api/src/main/java/org/apache/axiom/om/util/TextHelper.java?rev=1162358&r1=1162357&r2=1162358&view=diff
==============================================================================
--- webservices/commons/trunk/modules/axiom/modules/axiom-api/src/main/java/org/apache/axiom/om/util/TextHelper.java (original)
+++ webservices/commons/trunk/modules/axiom/modules/axiom-api/src/main/java/org/apache/axiom/om/util/TextHelper.java Sat Aug 27 14:11:24 2011
@@ -36,9 +36,19 @@ import org.apache.axiom.om.OMText;
import org.apache.axiom.util.base64.Base64Utils;
public class TextHelper {
-
+ /**
+ * @deprecated
+ */
private static int DEFAULT_FILE_THRESHOLD = 100 * 1024;
+
+ /**
+ * @deprecated
+ */
private static String DEFAULT_ATTACHMENT_DIR = "axiomTmp";
+
+ /**
+ * @deprecated
+ */
private static int DELETE_TIME = 60 * 60; // 1 Hour
/**
@@ -113,16 +123,8 @@ public class TextHelper {
return;
}
-
/**
- * Create an OMText node from a byte array containing binary data
- * If the byte array is large and the optimize flag is set, then
- * the data is stored in a temp file to reduce in-core memory
- * @param b
- * @param off
- * @param length
- * @param factory
- * @param isOptimize
+ * @deprecated The implementation of this method is incomplete. It will be removed in Axiom 1.3.
*/
public static OMText toOMText(byte[] b, int off, int length,
OMFactory factory,
@@ -132,15 +134,7 @@ public class TextHelper {
}
/**
- * Create an OMText node from a byte array containing binary data
- * If the byte array is large and the optimize flag is set, then
- * the data is stored in a temp file to reduce in-core memory
- * @param b
- * @param off
- * @param length
- * @param factory
- * @param isOptimize
- * @param attachmentDir
+ * @deprecated The implementation of this method is incomplete. It will be removed in Axiom 1.3.
*/
public static OMText toOMText(byte[] b, int off, int length,
OMFactory factory,
@@ -181,6 +175,9 @@ public class TextHelper {
return omText;
}
+ /**
+ * @deprecated
+ */
private static LifecycleManager getLifecycleManager(OMFactory factory) {
LifecycleManager lm = null;
@@ -196,6 +193,9 @@ public class TextHelper {
}
+ /**
+ * @deprecated
+ */
private static int getThreshold(OMFactory factory) {
int threshold = DEFAULT_FILE_THRESHOLD;
@@ -208,6 +208,9 @@ public class TextHelper {
}
+ /**
+ * @deprecated
+ */
private static String getAttachmentDir(OMFactory factory) {
String attachmentDir = DEFAULT_ATTACHMENT_DIR;