ch.qos.logback.core.util
Class FileSize

java.lang.Object
  extended by ch.qos.logback.core.util.FileSize

public class FileSize
extends Object

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.

Author:
Ceki Gülcü

Method Summary
 long getSize()
           
static FileSize valueOf(String fileSizeStr)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getSize

public long getSize()

valueOf

public static FileSize valueOf(String fileSizeStr)


Copyright © 2005-2013 QOS.ch. All Rights Reserved.