C# Class SharpCifs.Util.Sharpen.Runtime

显示文件 Open project: brandonprry/Potato Class Usage Examples

Public Methods

Method Description
CurrentTimeMillis ( ) : long
DeleteCharAt ( StringBuilder sb, int index ) : void
EqualsIgnoreCase ( string s1, string s2 ) : bool
GetBytesForString ( string str ) : byte[]
GetBytesForString ( string str, string encoding ) : byte[]
GetDeclaredFields ( Type t ) : System.Reflection.FieldInfo[]
GetEncoding ( string name ) : Encoding
GetProperties ( ) : Hashtable
GetProperty ( string key ) : string
GetRuntime ( ) : Runtime
GetStringForBytes ( byte chars ) : string
GetStringForBytes ( byte chars, int start, int len ) : string
GetStringForBytes ( byte chars, int start, int len, string encoding ) : string
GetStringForBytes ( byte chars, string encoding ) : string
GetType ( string name ) : Type
IdentityHashCode ( object ob ) : int
Notify ( object obj ) : void
NotifyAll ( object ob ) : void
PrintStackTrace ( Exception ex ) : void
PrintStackTrace ( Exception ex, TextWriter tw ) : void
SetCharAt ( StringBuilder sb, int index, char c ) : void
SetProperty ( string key, string value ) : void
Substring ( string str, int index ) : string
Substring ( string str, int index, int endIndex ) : string
Wait ( object ob, long milis ) : bool
Wait ( object ob ) : void

Private Methods

Method Description
AddShutdownHook ( IRunnable r ) : void
AvailableProcessors ( ) : int
CompareOrdinal ( string s1, string s2 ) : int
MaxMemory ( ) : long
NanoTime ( ) : long

Method Details

CurrentTimeMillis() public static method

public static CurrentTimeMillis ( ) : long
return long

DeleteCharAt() public static method

public static DeleteCharAt ( StringBuilder sb, int index ) : void
sb StringBuilder
index int
return void

EqualsIgnoreCase() public static method

public static EqualsIgnoreCase ( string s1, string s2 ) : bool
s1 string
s2 string
return bool

GetBytesForString() public static method

public static GetBytesForString ( string str ) : byte[]
str string
return byte[]

GetBytesForString() public static method

public static GetBytesForString ( string str, string encoding ) : byte[]
str string
encoding string
return byte[]

GetDeclaredFields() public static method

public static GetDeclaredFields ( Type t ) : System.Reflection.FieldInfo[]
t System.Type
return System.Reflection.FieldInfo[]

GetEncoding() public static method

public static GetEncoding ( string name ) : Encoding
name string
return System.Text.Encoding

GetProperties() public static method

public static GetProperties ( ) : Hashtable
return Hashtable

GetProperty() public static method

public static GetProperty ( string key ) : string
key string
return string

GetRuntime() public static method

public static GetRuntime ( ) : Runtime
return Runtime

GetStringForBytes() public static method

public static GetStringForBytes ( byte chars ) : string
chars byte
return string

GetStringForBytes() public static method

public static GetStringForBytes ( byte chars, int start, int len ) : string
chars byte
start int
len int
return string

GetStringForBytes() public static method

public static GetStringForBytes ( byte chars, int start, int len, string encoding ) : string
chars byte
start int
len int
encoding string
return string

GetStringForBytes() public static method

public static GetStringForBytes ( byte chars, string encoding ) : string
chars byte
encoding string
return string

GetType() public static method

public static GetType ( string name ) : Type
name string
return System.Type

IdentityHashCode() public static method

public static IdentityHashCode ( object ob ) : int
ob object
return int

Notify() public static method

public static Notify ( object obj ) : void
obj object
return void

NotifyAll() public static method

public static NotifyAll ( object ob ) : void
ob object
return void

PrintStackTrace() public static method

public static PrintStackTrace ( Exception ex ) : void
ex System.Exception
return void

PrintStackTrace() public static method

public static PrintStackTrace ( Exception ex, TextWriter tw ) : void
ex System.Exception
tw System.IO.TextWriter
return void

SetCharAt() public static method

public static SetCharAt ( StringBuilder sb, int index, char c ) : void
sb StringBuilder
index int
c char
return void

SetProperty() public static method

public static SetProperty ( string key, string value ) : void
key string
value string
return void

Substring() public static method

public static Substring ( string str, int index ) : string
str string
index int
return string

Substring() public static method

public static Substring ( string str, int index, int endIndex ) : string
str string
index int
endIndex int
return string

Wait() public static method

public static Wait ( object ob, long milis ) : bool
ob object
milis long
return bool

Wait() public static method

public static Wait ( object ob ) : void
ob object
return void