[Schmitzm-commits] r1867 - trunk/schmitzm-core/src/main/java/de/schmitzm/lang

scm-commit at wald.intevation.org scm-commit at wald.intevation.org
Sat Feb 11 19:11:00 CET 2012


Author: mojays
Date: 2012-02-11 19:10:59 +0100 (Sat, 11 Feb 2012)
New Revision: 1867

Modified:
   trunk/schmitzm-core/src/main/java/de/schmitzm/lang/LangUtil.java
Log:


Modified: trunk/schmitzm-core/src/main/java/de/schmitzm/lang/LangUtil.java
===================================================================
--- trunk/schmitzm-core/src/main/java/de/schmitzm/lang/LangUtil.java	2012-02-11 15:23:21 UTC (rev 1866)
+++ trunk/schmitzm-core/src/main/java/de/schmitzm/lang/LangUtil.java	2012-02-11 18:10:59 UTC (rev 1867)
@@ -90,6 +90,11 @@
 	public static final long DAY_MILLIS = 24 * HOUR_MILLIS;
 	/** Eine Woche in Millisekunden. */
 	public static final long WEEK_MILLIS = 7 * DAY_MILLIS;
+	
+	/** Ein Kilobyte (KB) in Bytes */
+	public static final long KB_BYTES = 1024;
+    /** Ein Megabyte (MB) in Bytes */
+	public static final long MB_BYTES = 1024 * KB_BYTES;
 
 	final static Pattern onlyZerosRegEx = Pattern.compile("^([\\s0.,]*)$");
 



More information about the Schmitzm-commits mailing list