rleland 2003/07/30 20:53:23 Modified: src/share/org/apache/struts/upload MultipartElement.java Log: Remove deprecated methods. Revision Changes Path 1.6 +3 -48 jakarta-struts/src/share/org/apache/struts/upload/MultipartElement.java Index: MultipartElement.java =================================================================== RCS file: /home/cvs/jakarta-struts/src/share/org/apache/struts/upload/MultipartElement.java,v retrieving revision 1.5 retrieving revision 1.6 diff -u -r1.5 -r1.6 --- MultipartElement.java 6 Jul 2002 04:44:07 -0000 1.5 +++ MultipartElement.java 31 Jul 2003 03:53:23 -0000 1.6 @@ -112,28 +112,6 @@ */ protected boolean isFile = false; - - /** - * @deprecated Use the constructor that takes an File as an argument - * as opposed to a byte array argument, which can cause - * memory problems. - */ - public MultipartElement(String name, String fileName, - String contentType, byte[] data) - { - - this.name = name; - this.fileName = fileName; - this.contentType = contentType; - this.data = data; - - if (fileName != null) - { - isFile = true; - } - - } - /** * Constructor for a file element. * @param name The form name of the element @@ -172,19 +150,6 @@ return contentType; } - - /** - * Retrieve the data. - * @deprecated Use the getFile method to get a File representing the - * data for this element - */ - public byte[] getData() - { - - return data; - } - - /** * Get the File that holds the data for this element. */ @@ -277,14 +242,4 @@ this.value = value; } - - /** - * Set the data. - * @deprecated Use the setFile method to set the file - * that represents the data of this element - */ - public void setData(byte[] data) - { - this.data = data; - } }
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]