Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id EA26A200B45 for ; Fri, 1 Jul 2016 07:48:59 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id E88E7160A52; Fri, 1 Jul 2016 05:48:59 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id C3008160A63 for ; Fri, 1 Jul 2016 07:48:57 +0200 (CEST) Received: (qmail 9376 invoked by uid 500); 1 Jul 2016 05:48:56 -0000 Mailing-List: contact notifications-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@commons.apache.org Delivered-To: mailing list notifications@commons.apache.org Received: (qmail 9335 invoked by uid 99); 1 Jul 2016 05:48:56 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 01 Jul 2016 05:48:56 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 223EF1A5389 for ; Fri, 1 Jul 2016 05:48:56 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 0.374 X-Spam-Level: X-Spam-Status: No, score=0.374 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, KAM_LAZY_DOMAIN_SECURITY=1, RP_MATCHES_RCVD=-1.426] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id hNB9C8evk24l for ; Fri, 1 Jul 2016 05:48:45 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id 3A65A5F56C for ; Fri, 1 Jul 2016 05:48:45 +0000 (UTC) Received: from svn01-us-west.apache.org (svn.apache.org [10.41.0.6]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 9EEF0E6548 for ; Fri, 1 Jul 2016 05:48:42 +0000 (UTC) Received: from svn01-us-west.apache.org (localhost [127.0.0.1]) by svn01-us-west.apache.org (ASF Mail Server at svn01-us-west.apache.org) with ESMTP id 429583A29F9 for ; Fri, 1 Jul 2016 05:48:42 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r991782 [22/46] - in /websites/production/commons/content/proper/commons-fileupload: ./ apidocs/ apidocs/org/apache/commons/fileupload/ apidocs/org/apache/commons/fileupload/class-use/ apidocs/org/apache/commons/fileupload/disk/ apidocs/org... Date: Fri, 01 Jul 2016 05:48:38 -0000 To: notifications@commons.apache.org From: britter@apache.org X-Mailer: svnmailer-1.0.9 Message-Id: <20160701054842.429583A29F9@svn01-us-west.apache.org> archived-at: Fri, 01 Jul 2016 05:49:00 -0000 Added: websites/production/commons/content/proper/commons-fileupload/cobertura/index.html ============================================================================== --- websites/production/commons/content/proper/commons-fileupload/cobertura/index.html (added) +++ websites/production/commons/content/proper/commons-fileupload/cobertura/index.html Fri Jul 1 05:48:35 2016 @@ -0,0 +1,25 @@ + + + + + +Coverage Report + + + + + + + + + + + <body> + <p>This document is designed to be viewed using the frames feature. If you see this message, you are using a frame-incapable web client.</p> + <p><a href="frame-summary.html">Click here to view a non-frame version.</a></p> + </body> + + + + \ No newline at end of file Propchange: websites/production/commons/content/proper/commons-fileupload/cobertura/index.html ------------------------------------------------------------------------------ svn:eol-style = native Added: websites/production/commons/content/proper/commons-fileupload/cobertura/js/customsorttypes.js ============================================================================== --- websites/production/commons/content/proper/commons-fileupload/cobertura/js/customsorttypes.js (added) +++ websites/production/commons/content/proper/commons-fileupload/cobertura/js/customsorttypes.js Fri Jul 1 05:48:35 2016 @@ -0,0 +1,65 @@ +/* + * Cobertura - http://cobertura.sourceforge.net/ + * + * Copyright (C) 2005 Mark Doliner + * Copyright (C) 2005 Olivier Parent + * + * Cobertura is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published + * by the Free Software Foundation; either version 2 of the License, + * or (at your option) any later version. + * + * Cobertura is distributed in the hope that it will be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with Cobertura; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 + * USA + */ + + + +function percentageSortType( s ) +{ + var ret; + var i = s.indexOf( "%" ); + + if (i != -1) { + s = s.substr( 0, i ); + } + ret = parseFloat(s); + if (isNaN(ret)) { + ret = -1; + } + + return ret; +} + +SortableTable.prototype.addSortType( "Percentage", percentageSortType ); + + + +// This is needed for correctly sorting numbers in different +// locales. The stock number converter only expects to sort +// numbers which use a period as a separator instead of a +// comma (like French). +function formattedNumberSortType( s ) +{ + var ret; + var i = s.indexOf(';'); + + if (i != -1) { + s = s.substring(0, i); + } + ret = parseFloat(s); + if (isNaN(ret)) { + return -1; + } + + return ret; +} + +SortableTable.prototype.addSortType( "FormattedNumber", formattedNumberSortType ); \ No newline at end of file Propchange: websites/production/commons/content/proper/commons-fileupload/cobertura/js/customsorttypes.js ------------------------------------------------------------------------------ svn:eol-style = native Added: websites/production/commons/content/proper/commons-fileupload/cobertura/js/popup.js ============================================================================== --- websites/production/commons/content/proper/commons-fileupload/cobertura/js/popup.js (added) +++ websites/production/commons/content/proper/commons-fileupload/cobertura/js/popup.js Fri Jul 1 05:48:35 2016 @@ -0,0 +1,8 @@ +var newwindow; +function popupwindow(url) +{ + newwindow=window.open(url,'name','height=500,width=500,resizable=yes,scrollbars=yes'); + if (window.focus) { + newwindow.focus() + } +} \ No newline at end of file Propchange: websites/production/commons/content/proper/commons-fileupload/cobertura/js/popup.js ------------------------------------------------------------------------------ svn:eol-style = native Added: websites/production/commons/content/proper/commons-fileupload/cobertura/js/sortabletable.js ============================================================================== --- websites/production/commons/content/proper/commons-fileupload/cobertura/js/sortabletable.js (added) +++ websites/production/commons/content/proper/commons-fileupload/cobertura/js/sortabletable.js Fri Jul 1 05:48:35 2016 @@ -0,0 +1,455 @@ + +/*----------------------------------------------------------------------------\ +| Sortable Table 1.12 | +|-----------------------------------------------------------------------------| +| Created by Erik Arvidsson | +| (http://webfx.eae.net/contact.html#erik) | +| For WebFX (http://webfx.eae.net/) | +|-----------------------------------------------------------------------------| +| A DOM 1 based script that allows an ordinary HTML table to be sortable. | +|-----------------------------------------------------------------------------| +| Copyright (c) 1998 - 2004 Erik Arvidsson | +|-----------------------------------------------------------------------------| +| This software is provided "as is", without warranty of any kind, express or | +| implied, including but not limited to the warranties of merchantability, | +| fitness for a particular purpose and noninfringement. In no event shall the | +| authors or copyright holders be liable for any claim, damages or other | +| liability, whether in an action of contract, tort or otherwise, arising | +| from, out of or in connection with the software or the use or other | +| dealings in the software. | +| - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | +| This software is available under the three different licenses mentioned | +| below. To use this software you must chose, and qualify, for one of those. | +| - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | +| The WebFX Non-Commercial License http://webfx.eae.net/license.html | +| Permits anyone the right to use the software in a non-commercial context | +| free of charge. | +| - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | +| The WebFX Commercial license http://webfx.eae.net/commercial.html | +| Permits the license holder the right to use the software in a commercial | +| context. Such license must be specifically obtained, however it's valid for | +| any number of implementations of the licensed software. | +| - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | +| GPL - The GNU General Public License http://www.gnu.org/licenses/gpl.txt | +| Permits anyone the right to use and modify the software without limitations | +| as long as proper credits are given and the original and modified source | +| code are included. Requires that the final product, software derivate from | +| the original source or any software utilizing a GPL component, such as | +| this, is also licensed under the GPL license. | +|-----------------------------------------------------------------------------| +| 2003-01-10 | First version | +| 2003-01-19 | Minor changes to the date parsing | +| 2003-01-28 | JScript 5.0 fixes (no support for 'in' operator) | +| 2003-02-01 | Sloppy typo like error fixed in getInnerText | +| 2003-07-04 | Added workaround for IE cellIndex bug. | +| 2003-11-09 | The bDescending argument to sort was not correctly working | +| | Using onclick DOM0 event if no support for addEventListener | +| | or attachEvent | +| 2004-01-13 | Adding addSortType and removeSortType which makes it a lot | +| | easier to add new, custom sort types. | +| 2004-01-27 | Switch to use descending = false as the default sort order. | +| | Change defaultDescending to suit your needs. | +| 2004-03-14 | Improved sort type None look and feel a bit | +| 2004-08-26 | Made the handling of tBody and tHead more flexible. Now you | +| | can use another tHead or no tHead, and you can chose some | +| | other tBody. | +|-----------------------------------------------------------------------------| +| Created 2003-01-10 | All changes are in the log above. | Updated 2004-08-26 | +\----------------------------------------------------------------------------*/ + + +function SortableTable(oTable, oSortTypes) { + + this.sortTypes = oSortTypes || []; + + this.sortColumn = null; + this.descending = null; + + var oThis = this; + this._headerOnclick = function (e) { + oThis.headerOnclick(e); + }; + + if (oTable) { + this.setTable( oTable ); + this.document = oTable.ownerDocument || oTable.document; + } + else { + this.document = document; + } + + + // only IE needs this + var win = this.document.defaultView || this.document.parentWindow; + this._onunload = function () { + oThis.destroy(); + }; + if (win && typeof win.attachEvent != "undefined") { + win.attachEvent("onunload", this._onunload); + } +} + +SortableTable.gecko = navigator.product == "Gecko"; +SortableTable.msie = /msie/i.test(navigator.userAgent); +// Mozilla is faster when doing the DOM manipulations on +// an orphaned element. MSIE is not +SortableTable.removeBeforeSort = SortableTable.gecko; + +SortableTable.prototype.onsort = function () {}; + +// default sort order. true -> descending, false -> ascending +SortableTable.prototype.defaultDescending = false; + +// shared between all instances. This is intentional to allow external files +// to modify the prototype +SortableTable.prototype._sortTypeInfo = {}; + +SortableTable.prototype.setTable = function (oTable) { + if ( this.tHead ) + this.uninitHeader(); + this.element = oTable; + this.setTHead( oTable.tHead ); + this.setTBody( oTable.tBodies[0] ); +}; + +SortableTable.prototype.setTHead = function (oTHead) { + if (this.tHead && this.tHead != oTHead ) + this.uninitHeader(); + this.tHead = oTHead; + this.initHeader( this.sortTypes ); +}; + +SortableTable.prototype.setTBody = function (oTBody) { + this.tBody = oTBody; +}; + +SortableTable.prototype.setSortTypes = function ( oSortTypes ) { + if ( this.tHead ) + this.uninitHeader(); + this.sortTypes = oSortTypes || []; + if ( this.tHead ) + this.initHeader( this.sortTypes ); +}; + +// adds arrow containers and events +// also binds sort type to the header cells so that reordering columns does +// not break the sort types +SortableTable.prototype.initHeader = function (oSortTypes) { + if (!this.tHead) return; + var cells = this.tHead.rows[0].cells; + var doc = this.tHead.ownerDocument || this.tHead.document; + this.sortTypes = oSortTypes || []; + var l = cells.length; + var img, c; + for (var i = 0; i < l; i++) { + c = cells[i]; + if (this.sortTypes[i] != null && this.sortTypes[i] != "None") { + img = doc.createElement("IMG"); + img.src = "images/blank.png"; + c.appendChild(img); + if (this.sortTypes[i] != null) + c._sortType = this.sortTypes[i]; + if (typeof c.addEventListener != "undefined") + c.addEventListener("click", this._headerOnclick, false); + else if (typeof c.attachEvent != "undefined") + c.attachEvent("onclick", this._headerOnclick); + else + c.onclick = this._headerOnclick; + } + else + { + c.setAttribute( "_sortType", oSortTypes[i] ); + c._sortType = "None"; + } + } + this.updateHeaderArrows(); +}; + +// remove arrows and events +SortableTable.prototype.uninitHeader = function () { + if (!this.tHead) return; + var cells = this.tHead.rows[0].cells; + var l = cells.length; + var c; + for (var i = 0; i < l; i++) { + c = cells[i]; + if (c._sortType != null && c._sortType != "None") { + c.removeChild(c.lastChild); + if (typeof c.removeEventListener != "undefined") + c.removeEventListener("click", this._headerOnclick, false); + else if (typeof c.detachEvent != "undefined") + c.detachEvent("onclick", this._headerOnclick); + c._sortType = null; + c.removeAttribute( "_sortType" ); + } + } +}; + +SortableTable.prototype.updateHeaderArrows = function () { + if (!this.tHead) return; + var cells = this.tHead.rows[0].cells; + var l = cells.length; + var img; + for (var i = 0; i < l; i++) { + if (cells[i]._sortType != null && cells[i]._sortType != "None") { + img = cells[i].lastChild; + if (i == this.sortColumn) + img.className = "sort-arrow " + (this.descending ? "descending" : "ascending"); + else + img.className = "sort-arrow"; + } + } +}; + +SortableTable.prototype.headerOnclick = function (e) { + // find TD element + var el = e.target || e.srcElement; + while (el.tagName != "TD") + el = el.parentNode; + + this.sort(SortableTable.msie ? SortableTable.getCellIndex(el) : el.cellIndex); +}; + +// IE returns wrong cellIndex when columns are hidden +SortableTable.getCellIndex = function (oTd) { + var cells = oTd.parentNode.childNodes + var l = cells.length; + var i; + for (i = 0; cells[i] != oTd && i < l; i++) + ; + return i; +}; + +SortableTable.prototype.getSortType = function (nColumn) { + return this.sortTypes[nColumn] || "String"; +}; + +// only nColumn is required +// if bDescending is left out the old value is taken into account +// if sSortType is left out the sort type is found from the sortTypes array + +SortableTable.prototype.sort = function (nColumn, bDescending, sSortType) { + if (!this.tBody) return; + if (sSortType == null) + sSortType = this.getSortType(nColumn); + + // exit if None + if (sSortType == "None") + return; + + if (bDescending == null) { + if (this.sortColumn != nColumn) + this.descending = this.defaultDescending; + else + this.descending = !this.descending; + } + else + this.descending = bDescending; + + this.sortColumn = nColumn; + + if (typeof this.onbeforesort == "function") + this.onbeforesort(); + + var f = this.getSortFunction(sSortType, nColumn); + var a = this.getCache(sSortType, nColumn); + var tBody = this.tBody; + + a.sort(f); + + if (this.descending) + a.reverse(); + + if (SortableTable.removeBeforeSort) { + // remove from doc + var nextSibling = tBody.nextSibling; + var p = tBody.parentNode; + p.removeChild(tBody); + } + + // insert in the new order + var l = a.length; + for (var i = 0; i < l; i++) + tBody.appendChild(a[i].element); + + if (SortableTable.removeBeforeSort) { + // insert into doc + p.insertBefore(tBody, nextSibling); + } + + this.updateHeaderArrows(); + + this.destroyCache(a); + + if (typeof this.onsort == "function") + this.onsort(); +}; + +SortableTable.prototype.asyncSort = function (nColumn, bDescending, sSortType) { + var oThis = this; + this._asyncsort = function () { + oThis.sort(nColumn, bDescending, sSortType); + }; + window.setTimeout(this._asyncsort, 1); +}; + +SortableTable.prototype.getCache = function (sType, nColumn) { + if (!this.tBody) return []; + var rows = this.tBody.rows; + var l = rows.length; + var a = new Array(l); + var r; + for (var i = 0; i < l; i++) { + r = rows[i]; + a[i] = { + value: this.getRowValue(r, sType, nColumn), + element: r + }; + }; + return a; +}; + +SortableTable.prototype.destroyCache = function (oArray) { + var l = oArray.length; + for (var i = 0; i < l; i++) { + oArray[i].value = null; + oArray[i].element = null; + oArray[i] = null; + } +}; + +SortableTable.prototype.getRowValue = function (oRow, sType, nColumn) { + // if we have defined a custom getRowValue use that + if (this._sortTypeInfo[sType] && this._sortTypeInfo[sType].getRowValue) + return this._sortTypeInfo[sType].getRowValue(oRow, nColumn); + + var s; + var c = oRow.cells[nColumn]; + if (typeof c.innerText != "undefined") + s = c.innerText; + else + s = SortableTable.getInnerText(c); + return this.getValueFromString(s, sType); +}; + +SortableTable.getInnerText = function (oNode) { + var s = ""; + var cs = oNode.childNodes; + var l = cs.length; + for (var i = 0; i < l; i++) { + switch (cs[i].nodeType) { + case 1: //ELEMENT_NODE + s += SortableTable.getInnerText(cs[i]); + break; + case 3: //TEXT_NODE + s += cs[i].nodeValue; + break; + } + } + return s; +}; + +SortableTable.prototype.getValueFromString = function (sText, sType) { + if (this._sortTypeInfo[sType]) + return this._sortTypeInfo[sType].getValueFromString( sText ); + return sText; + /* + switch (sType) { + case "Number": + return Number(sText); + case "CaseInsensitiveString": + return sText.toUpperCase(); + case "Date": + var parts = sText.split("-"); + var d = new Date(0); + d.setFullYear(parts[0]); + d.setDate(parts[2]); + d.setMonth(parts[1] - 1); + return d.valueOf(); + } + return sText; + */ + }; + +SortableTable.prototype.getSortFunction = function (sType, nColumn) { + if (this._sortTypeInfo[sType]) + return this._sortTypeInfo[sType].compare; + return SortableTable.basicCompare; +}; + +SortableTable.prototype.destroy = function () { + this.uninitHeader(); + var win = this.document.parentWindow; + if (win && typeof win.detachEvent != "undefined") { // only IE needs this + win.detachEvent("onunload", this._onunload); + } + this._onunload = null; + this.element = null; + this.tHead = null; + this.tBody = null; + this.document = null; + this._headerOnclick = null; + this.sortTypes = null; + this._asyncsort = null; + this.onsort = null; +}; + +// Adds a sort type to all instance of SortableTable +// sType : String - the identifier of the sort type +// fGetValueFromString : function ( s : string ) : T - A function that takes a +// string and casts it to a desired format. If left out the string is just +// returned +// fCompareFunction : function ( n1 : T, n2 : T ) : Number - A normal JS sort +// compare function. Takes two values and compares them. If left out less than, +// <, compare is used +// fGetRowValue : function( oRow : HTMLTRElement, nColumn : int ) : T - A function +// that takes the row and the column index and returns the value used to compare. +// If left out then the innerText is first taken for the cell and then the +// fGetValueFromString is used to convert that string the desired value and type + +SortableTable.prototype.addSortType = function (sType, fGetValueFromString, fCompareFunction, fGetRowValue) { + this._sortTypeInfo[sType] = { + type: sType, + getValueFromString: fGetValueFromString || SortableTable.idFunction, + compare: fCompareFunction || SortableTable.basicCompare, + getRowValue: fGetRowValue + }; +}; + +// this removes the sort type from all instances of SortableTable +SortableTable.prototype.removeSortType = function (sType) { + delete this._sortTypeInfo[sType]; +}; + +SortableTable.basicCompare = function compare(n1, n2) { + if (n1.value < n2.value) + return -1; + if (n2.value < n1.value) + return 1; + return 0; +}; + +SortableTable.idFunction = function (x) { + return x; +}; + +SortableTable.toUpperCase = function (s) { + return s.toUpperCase(); +}; + +SortableTable.toDate = function (s) { + var parts = s.split("-"); + var d = new Date(0); + d.setFullYear(parts[0]); + d.setDate(parts[2]); + d.setMonth(parts[1] - 1); + return d.valueOf(); +}; + + +// add sort types +SortableTable.prototype.addSortType("Number", Number); +SortableTable.prototype.addSortType("CaseInsensitiveString", SortableTable.toUpperCase); +SortableTable.prototype.addSortType("Date", SortableTable.toDate); +SortableTable.prototype.addSortType("String"); +// None is a special case \ No newline at end of file Propchange: websites/production/commons/content/proper/commons-fileupload/cobertura/js/sortabletable.js ------------------------------------------------------------------------------ svn:eol-style = native Added: websites/production/commons/content/proper/commons-fileupload/cobertura/js/stringbuilder.js ============================================================================== --- websites/production/commons/content/proper/commons-fileupload/cobertura/js/stringbuilder.js (added) +++ websites/production/commons/content/proper/commons-fileupload/cobertura/js/stringbuilder.js Fri Jul 1 05:48:35 2016 @@ -0,0 +1,79 @@ +/*----------------------------------------------------------------------------\ +| String Builder 1.02 | +|-----------------------------------------------------------------------------| +| Created by Erik Arvidsson | +| (http://webfx.eae.net/contact.html#erik) | +| For WebFX (http://webfx.eae.net/) | +|-----------------------------------------------------------------------------| +| A class that allows more efficient building of strings than concatenation. | +|-----------------------------------------------------------------------------| +| Copyright (c) 1999 - 2002 Erik Arvidsson | +|-----------------------------------------------------------------------------| +| This software is provided "as is", without warranty of any kind, express or | +| implied, including but not limited to the warranties of merchantability, | +| fitness for a particular purpose and noninfringement. In no event shall the | +| authors or copyright holders be liable for any claim, damages or other | +| liability, whether in an action of contract, tort or otherwise, arising | +| from, out of or in connection with the software or the use or other | +| dealings in the software. | +| - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | +| This software is available under the three different licenses mentioned | +| below. To use this software you must chose, and qualify, for one of those. | +| - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | +| The WebFX Non-Commercial License http://webfx.eae.net/license.html | +| Permits anyone the right to use the software in a non-commercial context | +| free of charge. | +| - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | +| The WebFX Commercial license http://webfx.eae.net/commercial.html | +| Permits the license holder the right to use the software in a commercial | +| context. Such license must be specifically obtained, however it's valid for | +| any number of implementations of the licensed software. | +| - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | +| GPL - The GNU General Public License http://www.gnu.org/licenses/gpl.txt | +| Permits anyone the right to use and modify the software without limitations | +| as long as proper credits are given and the original and modified source | +| code are included. Requires that the final product, software derivate from | +| the original source or any software utilizing a GPL component, such as | +| this, is also licensed under the GPL license. | +|-----------------------------------------------------------------------------| +| 2000-10-02 | First version | +| 2000-10-05 | Added a cache of the string so that it does not need to be | +| | regenerated every time in toString | +| 2002-10-03 | Added minor improvement in the toString method | +|-----------------------------------------------------------------------------| +| Created 2000-10-02 | All changes are in the log above. | Updated 2002-10-03 | +\----------------------------------------------------------------------------*/ function StringBuilder(sString) { + + // public + this.length = 0; + + this.append = function (sString) { + // append argument + this.length += (this._parts[this._current++] = String(sString)).length; + + // reset cache + this._string = null; + return this; + }; + + this.toString = function () { + if (this._string != null) + return this._string; + + var s = this._parts.join(""); + this._parts = [s]; + this._current = 1; + this.length = s.length; + + return this._string = s; + }; + + // private + this._current = 0; + this._parts = []; + this._string = null; // used to cache the string + + // init + if (sString != null) + this.append(sString); +} \ No newline at end of file Propchange: websites/production/commons/content/proper/commons-fileupload/cobertura/js/stringbuilder.js ------------------------------------------------------------------------------ svn:eol-style = native Added: websites/production/commons/content/proper/commons-fileupload/cobertura/org.apache.commons.fileupload.DefaultFileItem.html ============================================================================== --- websites/production/commons/content/proper/commons-fileupload/cobertura/org.apache.commons.fileupload.DefaultFileItem.html (added) +++ websites/production/commons/content/proper/commons-fileupload/cobertura/org.apache.commons.fileupload.DefaultFileItem.html Fri Jul 1 05:48:35 2016 @@ -0,0 +1,176 @@ + + + + +Coverage Report + + + + +
Coverage Report - org.apache.commons.fileupload.DefaultFileItem
+
 
+ + + + +
Classes in this File Line Coverage Branch Coverage Complexity
DefaultFileItem
100%
2/2
N/A
1
+
 
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
 1  
 /*
 2  
  * Licensed to the Apache Software Foundation (ASF) under one or more
 3  
  * contributor license agreements.  See the NOTICE file distributed with
 4  
  * this work for additional information regarding copyright ownership.
 5  
  * The ASF licenses this file to You under the Apache License, Version 2.0
 6  
  * (the "License"); you may not use this file except in compliance with
 7  
  * the License.  You may obtain a copy of the License at
 8  
  *
 9  
  *      http://www.apache.org/licenses/LICENSE-2.0
 10  
  *
 11  
  * Unless required by applicable law or agreed to in writing, software
 12  
  * distributed under the License is distributed on an "AS IS" BASIS,
 13  
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 14  
  * See the License for the specific language governing permissions and
 15  
  * limitations under the License.
 16  
  */
 17  
 package org.apache.commons.fileupload;
 18  
 
 19  
 import java.io.File;
 20  
 import org.apache.commons.fileupload.disk.DiskFileItem;
 21  
 
 22  
 /**
 23  
  * <p> The default implementation of the
 24  
  * {@link org.apache.commons.fileupload.FileItem FileItem} interface.
 25  
  *
 26  
  * <p> After retrieving an instance of this class from a {@link
 27  
  * org.apache.commons.fileupload.DiskFileUpload DiskFileUpload} instance (see
 28  
  * {@link org.apache.commons.fileupload.DiskFileUpload
 29  
  * #parseRequest(javax.servlet.http.HttpServletRequest)}), you may
 30  
  * either request all contents of file at once using {@link #get()} or
 31  
  * request an {@link java.io.InputStream InputStream} with
 32  
  * {@link #getInputStream()} and process the file without attempting to load
 33  
  * it into memory, which may come handy with large files.
 34  
  *
 35  
  * @version $Id: DefaultFileItem.java 1454690 2013-03-09 12:08:48Z simonetripodi $
 36  
  *
 37  
  * @deprecated 1.1 Use <code>DiskFileItem</code> instead.
 38  
  */
 39  
 @Deprecated
 40  
 public class DefaultFileItem
 41  
     extends DiskFileItem {
 42  
 
 43  
     // ----------------------------------------------------------- Constructors
 44  
 
 45  
     /**
 46  
      * The UID to use when serializing this instance.
 47  
      */
 48  
     private static final long serialVersionUID = 4088572813833518255L;
 49  
 
 50  
     /**
 51  
      * Constructs a new <code>DefaultFileItem</code> instance.
 52  
      *
 53  
      * @param fieldName     The name of the form field.
 54  
      * @param contentType   The content type passed by the browser or
 55  
      *                      <code>null</code> if not specified.
 56  
      * @param isFormField   Whether or not this item is a plain form field, as
 57  
      *                      opposed to a file upload.
 58  
      * @param fileName      The original filename in the user's filesystem, or
 59  
      *                      <code>null</code> if not specified.
 60  
      * @param sizeThreshold The threshold, in bytes, below which items will be
 61  
      *                      retained in memory and above which they will be
 62  
      *                      stored as a file.
 63  
      * @param repository    The data repository, which is the directory in
 64  
      *                      which files will be created, should the item size
 65  
      *                      exceed the threshold.
 66  
      *
 67  
      * @deprecated 1.1 Use <code>DiskFileItem</code> instead.
 68  
      */
 69  
     @Deprecated
 70  
     public DefaultFileItem(String fieldName, String contentType,
 71  
             boolean isFormField, String fileName, int sizeThreshold,
 72  
             File repository) {
 73  5
         super(fieldName, contentType, isFormField, fileName, sizeThreshold,
 74  
                 repository);
 75  5
     }
 76  
 
 77  
 }
+ + + + \ No newline at end of file Propchange: websites/production/commons/content/proper/commons-fileupload/cobertura/org.apache.commons.fileupload.DefaultFileItem.html ------------------------------------------------------------------------------ svn:eol-style = native Added: websites/production/commons/content/proper/commons-fileupload/cobertura/org.apache.commons.fileupload.DefaultFileItemFactory.html ============================================================================== --- websites/production/commons/content/proper/commons-fileupload/cobertura/org.apache.commons.fileupload.DefaultFileItemFactory.html (added) +++ websites/production/commons/content/proper/commons-fileupload/cobertura/org.apache.commons.fileupload.DefaultFileItemFactory.html Fri Jul 1 05:48:35 2016 @@ -0,0 +1,230 @@ + + + + +Coverage Report + + + + +
Coverage Report - org.apache.commons.fileupload.DefaultFileItemFactory
+
 
+ + + + +
Classes in this File Line Coverage Branch Coverage Complexity
DefaultFileItemFactory
100%
6/6
N/A
1
+
 
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
 1  
 /*
 2  
  * Licensed to the Apache Software Foundation (ASF) under one or more
 3  
  * contributor license agreements.  See the NOTICE file distributed with
 4  
  * this work for additional information regarding copyright ownership.
 5  
  * The ASF licenses this file to You under the Apache License, Version 2.0
 6  
  * (the "License"); you may not use this file except in compliance with
 7  
  * the License.  You may obtain a copy of the License at
 8  
  *
 9  
  *      http://www.apache.org/licenses/LICENSE-2.0
 10  
  *
 11  
  * Unless required by applicable law or agreed to in writing, software
 12  
  * distributed under the License is distributed on an "AS IS" BASIS,
 13  
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 14  
  * See the License for the specific language governing permissions and
 15  
  * limitations under the License.
 16  
  */
 17  
 package org.apache.commons.fileupload;
 18  
 
 19  
 import java.io.File;
 20  
 import org.apache.commons.fileupload.disk.DiskFileItemFactory;
 21  
 
 22  
 /**
 23  
  * <p>The default {@link org.apache.commons.fileupload.FileItemFactory}
 24  
  * implementation. This implementation creates
 25  
  * {@link org.apache.commons.fileupload.FileItem} instances which keep their
 26  
  * content either in memory, for smaller items, or in a temporary file on disk,
 27  
  * for larger items. The size threshold, above which content will be stored on
 28  
  * disk, is configurable, as is the directory in which temporary files will be
 29  
  * created.</p>
 30  
  *
 31  
  * <p>If not otherwise configured, the default configuration values are as
 32  
  * follows:
 33  
  * <ul>
 34  
  *   <li>Size threshold is 10KB.</li>
 35  
  *   <li>Repository is the system default temp directory, as returned by
 36  
  *       <code>System.getProperty("java.io.tmpdir")</code>.</li>
 37  
  * </ul>
 38  
  *
 39  
  * @version $Id: DefaultFileItemFactory.java 1638222 2014-11-11 17:36:09Z tn $
 40  
  *
 41  
  * @deprecated 1.1 Use <code>DiskFileItemFactory</code> instead.
 42  
  */
 43  
 @Deprecated
 44  
 public class DefaultFileItemFactory extends DiskFileItemFactory {
 45  
 
 46  
     // ----------------------------------------------------------- Constructors
 47  
 
 48  
     /**
 49  
      * Constructs an unconfigured instance of this class. The resulting factory
 50  
      * may be configured by calling the appropriate setter methods.
 51  
      *
 52  
      * @deprecated 1.1 Use <code>DiskFileItemFactory</code> instead.
 53  
      */
 54  
     @Deprecated
 55  
     public DefaultFileItemFactory() {
 56  2
         super();
 57  2
     }
 58  
 
 59  
     /**
 60  
      * Constructs a preconfigured instance of this class.
 61  
      *
 62  
      * @param sizeThreshold The threshold, in bytes, below which items will be
 63  
      *                      retained in memory and above which they will be
 64  
      *                      stored as a file.
 65  
      * @param repository    The data repository, which is the directory in
 66  
      *                      which files will be created, should the item size
 67  
      *                      exceed the threshold.
 68  
      *
 69  
      * @deprecated 1.1 Use <code>DiskFileItemFactory</code> instead.
 70  
      */
 71  
     @Deprecated
 72  
     public DefaultFileItemFactory(int sizeThreshold, File repository) {
 73  5
         super(sizeThreshold, repository);
 74  5
     }
 75  
 
 76  
     // --------------------------------------------------------- Public Methods
 77  
 
 78  
     /**
 79  
      * Create a new {@link org.apache.commons.fileupload.DefaultFileItem}
 80  
      * instance from the supplied parameters and the local factory
 81  
      * configuration.
 82  
      *
 83  
      * @param fieldName   The name of the form field.
 84  
      * @param contentType The content type of the form field.
 85  
      * @param isFormField <code>true</code> if this is a plain form field;
 86  
      *                    <code>false</code> otherwise.
 87  
      * @param fileName    The name of the uploaded file, if any, as supplied
 88  
      *                    by the browser or other client.
 89  
      *
 90  
      * @return The newly created file item.
 91  
      *
 92  
      * @deprecated 1.1 Use <code>DiskFileItemFactory</code> instead.
 93  
      */
 94  
     @Override
 95  
     @Deprecated
 96  
     public FileItem createItem(
 97  
             String fieldName,
 98  
             String contentType,
 99  
             boolean isFormField,
 100  
             String fileName
 101  
             ) {
 102  5
         return new DefaultFileItem(fieldName, contentType,
 103  5
                 isFormField, fileName, getSizeThreshold(), getRepository());
 104  
     }
 105  
 
 106  
 }
+ + + + \ No newline at end of file Propchange: websites/production/commons/content/proper/commons-fileupload/cobertura/org.apache.commons.fileupload.DefaultFileItemFactory.html ------------------------------------------------------------------------------ svn:eol-style = native