Package ch.qos.logback.core.util
Class FileSize
- java.lang.Object
-
- ch.qos.logback.core.util.FileSize
-
@Deprecated(since="2022-01-27") public class FileSize extends java.lang.Object
Deprecated.This internal logback API is not supported by AEM as a Cloud Service.Instances of this class represent the size of a file. Internally, the size is stored as long.>The
valueOf(java.lang.String)
method can convert strings such as "3 kb", "5 mb", into FileSize instances. The recognized unit specifications for file size are the "kb", "mb", and "gb". The unit name may be followed by an "s". Thus, "2 kbs" and "2 kb" are equivalent. In the absence of a time unit specification, byte is assumed.
-
-
Field Summary
Fields Modifier and Type Field Description static long
GB_COEFFICIENT
Deprecated.static long
KB_COEFFICIENT
Deprecated.static long
MB_COEFFICIENT
Deprecated.
-
Constructor Summary
Constructors Constructor Description FileSize(long size)
Deprecated.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description long
getSize()
Deprecated.java.lang.String
toString()
Deprecated.static FileSize
valueOf(java.lang.String fileSizeStr)
Deprecated.
-
-
-
Field Detail
-
KB_COEFFICIENT
public static final long KB_COEFFICIENT
Deprecated.- See Also:
- Constant Field Values
-
MB_COEFFICIENT
public static final long MB_COEFFICIENT
Deprecated.- See Also:
- Constant Field Values
-
GB_COEFFICIENT
public static final long GB_COEFFICIENT
Deprecated.- See Also:
- Constant Field Values
-
-
Method Detail
-
getSize
public long getSize()
Deprecated.
-
valueOf
public static FileSize valueOf(java.lang.String fileSizeStr)
Deprecated.
-
toString
public java.lang.String toString()
Deprecated.- Overrides:
toString
in classjava.lang.Object
-
-