C# Class Sharpen.Runtime

Show file Open project: oganix/NBoilerpipe Class Usage Examples

Public Methods

Method Description
AddShutdownHook ( Runnable r ) : void
AvailableProcessors ( ) : int
CompareOrdinal ( string s1, string s2 ) : int
CurrentTimeMillis ( ) : long
EqualsIgnoreCase ( string s1, string s2 ) : bool
Exec ( string cmd, string envp, FilePath dir ) : SystemProcess
GetBytesForString ( string str ) : byte[]
GetBytesForString ( string str, string encoding ) : byte[]
GetDeclaredFields ( Type t ) : System.Reflection.FieldInfo[]
GetEncoding ( string name ) : Encoding
GetEnv ( ) : string>.IDictionary
GetLocalHost ( ) : IPAddress
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
Getenv ( string var ) : string
IdentityHashCode ( object ob ) : int
MaxMemory ( ) : long
NanoTime ( ) : long
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

Method Details

AddShutdownHook() public method

public AddShutdownHook ( Runnable r ) : void
r Runnable
return void

AvailableProcessors() public method

public AvailableProcessors ( ) : int
return int

CompareOrdinal() public static method

public static CompareOrdinal ( string s1, string s2 ) : int
s1 string
s2 string
return int

CurrentTimeMillis() public static method

public static CurrentTimeMillis ( ) : long
return long

EqualsIgnoreCase() public static method

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

Exec() public method

public Exec ( string cmd, string envp, FilePath dir ) : SystemProcess
cmd string
envp string
dir FilePath
return SystemProcess

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

GetEnv() public static method

public static GetEnv ( ) : string>.IDictionary
return string>.IDictionary

GetLocalHost() public static method

public static GetLocalHost ( ) : IPAddress
return System.Net.IPAddress

GetProperties() public static method

public static GetProperties ( ) : Hashtable
return System.Collections.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

Getenv() public static method

public static Getenv ( string var ) : string
var string
return string

IdentityHashCode() public static method

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

MaxMemory() public method

public MaxMemory ( ) : long
return long

NanoTime() public static method

public static NanoTime ( ) : long
return long

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