
org.apache.commons.io.FileSystemUtils.class Maven / Gradle / Ivy
The newest version!
???? 1?
? ? n ? n ?????????
n ?
n ?
n ? ? ?
?
? ? ?
?
n ?
n ? ? ?
? ?
? ?
?
? ?
? ?
?
? ? ???
n
n
) ?
?
?
?
n ? n
>
>
>
!"#$%
H&'
K(
)*
n+
,-
,.
,/01
S2
R3
R4 56
7
89
,:
);
,<=
>?
@ABC
DE
DF
DG
,HIJK
L
MN
MOP
n ?QR
STUV
WXYZ[\]^_`abcdef INSTANCE 'Lorg/apache/commons/io/FileSystemUtils; INIT_PROBLEM I
ConstantValue???? OTHER WINDOWS UNIX
POSIX_UNIX OS DF Ljava/lang/String; ()V Code LineNumberTable LocalVariableTable this freeSpace (Ljava/lang/String;)J path
Exceptions
Deprecated RuntimeVisibleAnnotations Ljava/lang/Deprecated; freeSpaceKb (Ljava/lang/String;J)J timeout J ()J (J)J freeSpaceOS (Ljava/lang/String;IZJ)J os kb Z freeSpaceWindows line i
cmdAttribs [Ljava/lang/String; lines Ljava/util/List; LocalVariableTypeTable $Ljava/util/List; parseDir '(Ljava/lang/String;Ljava/lang/String;)J c C k
bytesStart bytesEnd j buf Ljava/lang/StringBuilder;
freeSpaceUnix (Ljava/lang/String;ZZJ)J line3 posix flags line2 tok Ljava/util/StringTokenizer;
parseBytes bytes ex !Ljava/lang/NumberFormatException; performCommand '([Ljava/lang/String;IJ)Ljava/util/List; monitor Ljava/lang/Thread; Ljava/lang/InterruptedException; max proc Ljava/lang/Process; in Ljava/io/InputStream; out Ljava/io/OutputStream; err inr Ljava/io/BufferedReader; Signature ;([Ljava/lang/String;IJ)Ljava/util/List; openProcess (([Ljava/lang/String;)Ljava/lang/Process; osName Ljava/lang/Exception; dfPath
SourceFile FileSystemUtils.java ? ? ? ? ? ? ? ? ? ? ? ? java/io/File . ?ghi "java/lang/IllegalArgumentException Path must not be empty ? ? ? ? java/lang/IllegalStateException Unsupported operating system 2Exception caught when determining operating systemjklmnop java/lang/StringBuilder "qrsi java/lang/String cmd.exe /C dir /a /-c ? ?tunvw ? ? java/io/IOException 9Command line 'dir /-c' did not return any info for path ' 'xyz ;Command line 'dir /-c' did not return valid info for path '{|}~ ? ? - P ? ? Command line ' "' did not return info as expected
for path ' '- response was q java/util/StringTokenizer ???n "' did not return data as expected '- check path is valid?i?? ? &' did not find free space in response java/lang/NumberFormatException *org/apache/commons/io/IOExceptionWithCause *' did not return numeric data as expected ?? java/util/ArrayList ????? ? ???????? java/io/BufferedReader java/io/InputStreamReader ?? ???i??????i???n???n %Command line returned OS error code 'q~ ' for command ????? 1Command line did not return any info for command ???????? ? java/lang/InterruptedException 7Command line threw an InterruptedException for command timeout=q????? ? %org/apache/commons/io/FileSystemUtils df os.name??? os.name not found windows?? linux mpe/ix freebsd irix digital unix unix mac os x sun os sunos solaris /usr/xpg4/bin/df hp-ux aix java/lang/Exception java/lang/Object (Ljava/lang/String;)V getAbsolutePath ()Ljava/lang/String; #org/apache/commons/io/FilenameUtils normalize '(Ljava/lang/String;Z)Ljava/lang/String; length ()I charAt (I)C append -(Ljava/lang/String;)Ljava/lang/StringBuilder; toString java/util/List size get (I)Ljava/lang/Object; java/lang/Character isDigit (C)Z substring (II)Ljava/lang/String; deleteCharAt (I)Ljava/lang/StringBuilder; -(Ljava/lang/Object;)Ljava/lang/StringBuilder; '(Ljava/lang/String;Ljava/lang/String;)V countTokens nextToken java/lang/Long parseLong *(Ljava/lang/String;Ljava/lang/Throwable;)V (I)V #org/apache/commons/io/ThreadMonitor start (J)Ljava/lang/Thread; java/lang/Process getInputStream ()Ljava/io/InputStream; getOutputStream ()Ljava/io/OutputStream; getErrorStream (Ljava/io/InputStream;)V (Ljava/io/Reader;)V readLine java/util/Locale ENGLISH Ljava/util/Locale; toLowerCase &(Ljava/util/Locale;)Ljava/lang/String; trim add (Ljava/lang/Object;)Z waitFor stop (Ljava/lang/Thread;)V exitValue java/util/Arrays asList %([Ljava/lang/Object;)Ljava/util/List; isEmpty ()Z org/apache/commons/io/IOUtils closeQuietly (Ljava/io/OutputStream;)V destroy (J)Ljava/lang/StringBuilder; java/lang/Runtime
getRuntime ()Ljava/lang/Runtime; exec java/lang/System getProperty &(Ljava/lang/String;)Ljava/lang/String; indexOf (Ljava/lang/String;)I ! n ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? 3 *? ? ?
n o ? ? ? ? ? ? 9 ? *? ? ? ? ? ? ? ? ? ) ? ? ? ? ? ? 2 * ? ? ? ? ? ? ? ? ) ? ? ? A
? *? ? ? ? ? ?
? ?
? ? ? ) ? ? ? ? ? ? ? ? ) ? ? ? ; ? Y
? ? ? ? ? ? ? ? ? ? ) ? ? ? ? n+?
?
Y? ?? U K 7 A? *+? m?
*+? ?*+? ?*+? ?? Y? ?? Y? ? ? " , F
P Z d ? 4 n ? ? n ? ? n ? ? n ? ? n ? ? ? ) ? ? ? U ?+? L+? ? &+? "? ? Y? ? +? ? ? L? Y!SY"SY? Y? #? +? ? S:*$ ? %:? & d6? '? ' ? :? ? *+? (?????ڻ )Y? Y? *? +? +? ? ? ,? ? . ! " 0&