/*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
* particular file as subject to the "Classpath" exception as provided
* by Oracle in the LICENSE file that accompanied this code.
*
* This code 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
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
class Formatter {
if (t < 1 * MINUTE) {
} else {
long remaining = t;
if (t >= 1 * DAY) {
} else if (t >= 1 * HOUR) {
} else {
}
}
return str;
}
long ms = t / 1000000;
return formatTime(ms);
}
}
}
}
int dateStyle = -1;
int timeStyle = -1;
}
}
return new SimpleDateFormat(dtfStr);
} else {
return DateFormat.getDateTimeInstance();
}
}
// Excel is bug compatible with Lotus 1-2-3 and pretends
// that 1900 was a leap year, so count from 1899-12-30.
// Note that the month index is zero-based in Calendar.
// Adjust for the fact that now may be DST but then wasn't
if (dst > 0) {
}
return value;
}
for (int i = 0; i < n; i++) {
if (bytes[i] > 0) {
bytes[i] /= 1024;
}
}
for (int i = 0; i < n; i++) {
}
return strings;
}
if (bytes == -1) {
}
}
return formatBytes(v, v, html);
}
return formatBytes(v, vMax, false);
}
String s;
if (exp < 3) {
} else if (exp < 6) {
} else if (exp < 9) {
} else {
}
if (html) {
}
return s;
}
/*
* Return the input value rounded to one decimal place. If after
* rounding the string ends in the (locale-specific) decimal point
* followed by a zero then trim that off as well.
*/
}
return s;
}
}
int size = 0;
for (int i = 0; i < n; i++) {
}
for (int i = 0; i < n; i++) {
}
return strings;
}
// A poor attempt at right-justifying for numerical data
}
for (int i = 0; i < n; i++) {
}
}
}
label = "";
} else {
label += ": ";
}
}
}
}