Class Utils
public class Utils : JVMBridgeBase<Utils>, IDynamicMetaObjectProvider, IJVMBridgeCore, IDisposable, IJVMBridgeBaseStatic, IJVMBridgeBase, IJVMBridgeDefinition
- Inheritance
-
JVMBridgeBaseJVMBridgeBase<Utils>Utils
- Implements
-
IJVMBridgeCoreIJVMBridgeBaseStaticIJVMBridgeBaseIJVMBridgeDefinition
- Inherited Members
-
JVMBridgeBase<Utils>.IsAssignableFrom(IJavaType)JVMBridgeBase<Utils>.IsAssignableFrom<T>()JVMBridgeBase<Utils>.Execute<T>(params T[])JVMBridgeBase<Utils>.DynBridgeClazzJVMBridgeBase<Utils>.BridgeClazzJVMBridgeBase.RuntimeClassNameOf<T>()JVMBridgeBase.ClassNameOf<T>()JVMBridgeBase.ClassOf<T>()JVMBridgeBase.WrapsDirect<TNewClass>(IJavaObject)JVMBridgeBase.Wraps<TNewClass>(IJavaObject)JVMBridgeBase.Wraps<TNewClass, TReturn>(IJavaObject)JVMBridgeBase.Wraps<TNewClass, TReturn, TConverter>(IJavaObject)JVMBridgeBase.MonitorEnter()JVMBridgeBase.MonitorExit()JVMBridgeBase.IsInstanceOf(IJavaType)JVMBridgeBase.IsInstanceOf<T>()JVMBridgeBase.RuntimeIsInstanceOf<T>()JVMBridgeBase.CastTo<TNewClass>()JVMBridgeBase.CastDirect<TNewClass>()JVMBridgeBase.Dispose()JVMBridgeBase.ToString()JVMBridgeBase.GetHashCode()JVMBridgeBase.Notify()JVMBridgeBase.NotifyAll()JVMBridgeBase.Wait()JVMBridgeBase.IExecuteWithSignature<TNewClass, TReturn, TConverter>(string, string, params object[])JVMBridgeBase.DynBridgeInstanceJVMBridgeBase.BridgeInstanceJVMBridgeBase.IsBridgeListener
Constructors
Utils()
Default constructor: even if the corresponding Java class does not have one, it is mandatory for JCOBridge
public Utils()
Utils(params object[])
Generic constructor: it is useful for JCOBridge when there is a derived class which needs to pass arguments to the highest JVMBridgeBase class
public Utils(params object[] args)
Parameters
args
object[]
Properties
BridgeClassName
https://www.jcobridge.com/api-clr/html/P_MASES_JCOBridge_C2JBridge_JVMBridgeBase_BridgeClassName.htm
public override string BridgeClassName { get; }
Property Value
ContextOrKafkaClassLoader
public static ClassLoader ContextOrKafkaClassLoader { get; }
Property Value
IsBridgeAbstract
public override bool IsBridgeAbstract { get; }
Property Value
IsBridgeCloseable
public override bool IsBridgeCloseable { get; }
Property Value
IsBridgeInterface
public override bool IsBridgeInterface { get; }
Property Value
IsBridgeStatic
public override bool IsBridgeStatic { get; }
Property Value
KafkaClassLoader
public static ClassLoader KafkaClassLoader { get; }
Property Value
NL
public static String NL { get; }
Property Value
Methods
Abs(int)
public static int Abs(int arg0)
Parameters
Returns
AtomicMoveWithFallback(Path, Path)
public static void AtomicMoveWithFallback(Path arg0, Path arg1)
Parameters
Exceptions
AtomicMoveWithFallback(Path, Path, bool)
public static void AtomicMoveWithFallback(Path arg0, Path arg1, bool arg2)
Parameters
Exceptions
CastToStringObjectMap(Map<object, object>)
public static Map<String, object> CastToStringObjectMap(Map<object, object> arg0)
Parameters
Returns
CloseAll(params Closeable[])
public static void CloseAll(params Closeable[] arg0)
Parameters
Exceptions
CloseAllQuietly(AtomicReference<Throwable>, String, params AutoCloseable[])
public static void CloseAllQuietly(AtomicReference<Throwable> arg0, String arg1, params AutoCloseable[] arg2)
Parameters
arg0
AtomicReference<Throwable>arg1
Stringarg2
AutoCloseable[]
CloseQuietly(AutoCloseable, String)
public static void CloseQuietly(AutoCloseable arg0, String arg1)
Parameters
arg0
AutoCloseablearg1
String
CloseQuietly(AutoCloseable, String, AtomicReference<Throwable>)
public static void CloseQuietly(AutoCloseable arg0, String arg1, AtomicReference<Throwable> arg2)
Parameters
arg0
AutoCloseablearg1
Stringarg2
AtomicReference<Throwable>
CopyArray(byte[])
public static byte[] CopyArray(byte[] arg0)
Parameters
Returns
CovariantCast<S, Arg0ExtendsS>(Iterator<Arg0ExtendsS>)
public static Iterator<S> CovariantCast<S, Arg0ExtendsS>(Iterator<Arg0ExtendsS> arg0) where Arg0ExtendsS : S
Parameters
Returns
Type Parameters
S
Arg0ExtendsS
S
Delete(File)
public static void Delete(File arg0)
Parameters
Exceptions
Diff<E>(Supplier<Set<E>>, Set<E>, Set<E>)
public static Set<E> Diff<E>(Supplier<Set<E>> arg0, Set<E> arg1, Set<E> arg2)
Parameters
Returns
Type Parameters
E
EnsureCapacity(ByteBuffer, int)
public static ByteBuffer EnsureCapacity(ByteBuffer arg0, int arg1)
Parameters
arg0
ByteBufferarg1
int
Returns
EnsureConcreteSubclass(Class, Class)
public static void EnsureConcreteSubclass(Class arg0, Class arg1)
Parameters
EntriesToMap<K, V, M>(Supplier<M>)
public static Collector<Map.Entry<K, V>, M, M> EntriesToMap<K, V, M>(Supplier<M> arg0) where M : Map<K, V>
Parameters
Returns
Type Parameters
K
V
M
EntriesWithPrefix<V>(Map<String, V>, String)
public static Map<String, V> EntriesWithPrefix<V>(Map<String, V> arg0, String arg1)
Parameters
Returns
Type Parameters
V
EntriesWithPrefix<V>(Map<String, V>, String, bool)
public static Map<String, V> EntriesWithPrefix<V>(Map<String, V> arg0, String arg1, bool arg2)
Parameters
Returns
Type Parameters
V
EntriesWithPrefix<V>(Map<String, V>, String, bool, bool)
public static Map<String, V> EntriesWithPrefix<V>(Map<String, V> arg0, String arg1, bool arg2, bool arg3)
Parameters
Returns
Type Parameters
V
EnumOptions(Class)
public static String[] EnumOptions(Class arg0)
Parameters
Returns
FilterMap<K, V>(Map<K, V>, Predicate<Entry<K, V>>)
public static Map<K, V> FilterMap<K, V>(Map<K, V> arg0, Predicate<Map.Entry<K, V>> arg1)
Parameters
Returns
Type Parameters
K
V
FlushDir(Path)
public static void FlushDir(Path arg0)
Parameters
Exceptions
FlushDirIfExists(Path)
public static void FlushDirIfExists(Path arg0)
Parameters
Exceptions
FlushFileIfExists(Path)
public static void FlushFileIfExists(Path arg0)
Parameters
Exceptions
FormatAddress(String, Integer)
public static String FormatAddress(String arg0, Integer arg1)
Parameters
Returns
FormatBytes(long)
public static String FormatBytes(long arg0)
Parameters
Returns
From32BitField(int)
public static Set<Byte> From32BitField(int arg0)
Parameters
Returns
GetDateTime(String)
public static long GetDateTime(String arg0)
Parameters
Returns
Exceptions
GetHost(String)
public static String GetHost(String arg0)
Parameters
Returns
GetNullableArray(ByteBuffer, int)
public static byte[] GetNullableArray(ByteBuffer arg0, int arg1)
Parameters
arg0
ByteBufferarg1
int
Returns
GetNullableSizePrefixedArray(ByteBuffer)
public static byte[] GetNullableSizePrefixedArray(ByteBuffer arg0)
Parameters
arg0
ByteBuffer
Returns
GetPort(String)
public static Integer GetPort(String arg0)
Parameters
Returns
Intersection<E>(Supplier<Set<E>>, Set<E>, params Set<E>[])
public static Set<E> Intersection<E>(Supplier<Set<E>> arg0, Set<E> arg1, params Set<E>[] arg2)
Parameters
Returns
Type Parameters
E
IsBlank(String)
public static bool IsBlank(String arg0)
Parameters
Returns
IsEqualConstantTime(char[], char[])
public static bool IsEqualConstantTime(char[] arg0, char[] arg1)
Parameters
Returns
LoadClass<ReturnExtendsT, T>(String, Class)
public static Class LoadClass<ReturnExtendsT, T>(String arg0, Class arg1) where ReturnExtendsT : T
Parameters
Returns
Type Parameters
ReturnExtendsT
T
T
Exceptions
LoadProps(String)
public static Properties LoadProps(String arg0)
Parameters
Returns
Exceptions
LoadProps(String, List<String>)
public static Properties LoadProps(String arg0, List<String> arg1)
Parameters
Returns
Exceptions
Max(long, params long[])
public static long Max(long arg0, params long[] arg1)
Parameters
Returns
MaybeCloseQuietly(object, String)
public static void MaybeCloseQuietly(object arg0, String arg1)
Parameters
MergeConfigs(List<ConfigDef>)
public static ConfigDef MergeConfigs(List<ConfigDef> arg0)
Parameters
Returns
Min(short, short)
public static short Min(short arg0, short arg1)
Parameters
Returns
Min(long, params long[])
public static long Min(long arg0, params long[] arg1)
Parameters
Returns
MkEntry<K, V>(K, V)
public static Map.Entry<K, V> MkEntry<K, V>(K arg0, V arg1)
Parameters
arg0
KK
arg1
VV
Returns
Type Parameters
K
V
MkMap<K, V>(params Entry<K, V>[])
public static Map<K, V> MkMap<K, V>(params Map.Entry<K, V>[] arg0)
Parameters
Returns
Type Parameters
K
V
MkObjectProperties(Map<String, object>)
public static Properties MkObjectProperties(Map<String, object> arg0)
Parameters
Returns
MkProperties(Map<String, String>)
public static Properties MkProperties(Map<String, String> arg0)
Parameters
Returns
MkSet<T>(params T[])
public static Set<T> MkSet<T>(params T[] arg0)
Parameters
arg0
T[]T
Returns
Type Parameters
T
MkSortedSet<T>(params T[])
public static SortedSet<T> MkSortedSet<T>(params T[] arg0) where T : Comparable<T>
Parameters
arg0
T[]T
Returns
Type Parameters
MkString<K, V>(Map<K, V>, String, String, String, String)
public static String MkString<K, V>(Map<K, V> arg0, String arg1, String arg2, String arg3, String arg4)
Parameters
Returns
Type Parameters
K
V
Murmur2(byte[])
public static int Murmur2(byte[] arg0)
Parameters
Returns
NewInstance<T>(Class)
public static T NewInstance<T>(Class arg0)
Parameters
Returns
- T
T
Type Parameters
T
NewInstance<T>(Class, Class)
public static T NewInstance<T>(Class arg0, Class arg1)
Parameters
Returns
- T
T
Type Parameters
T
NewInstance<T>(String, Class)
public static T NewInstance<T>(String arg0, Class arg1)
Parameters
Returns
- T
T
Type Parameters
T
Exceptions
NewParameterizedInstance<T>(String, params object[])
public static T NewParameterizedInstance<T>(String arg0, params object[] arg1)
Parameters
Returns
- T
T
Type Parameters
T
Exceptions
ParseMap(String, String, String)
public static Map<String, String> ParseMap(String arg0, String arg1, String arg2)
Parameters
Returns
PropsToMap(Properties)
public static Map<String, object> PropsToMap(Properties arg0)
Parameters
arg0
Properties
Returns
PropsToStringMap(Properties)
public static Map<String, String> PropsToStringMap(Properties arg0)
Parameters
arg0
Properties
Returns
ReadBytes(ByteBuffer)
public static byte[] ReadBytes(ByteBuffer arg0)
Parameters
arg0
ByteBuffer
Returns
ReadBytes(ByteBuffer, int)
public static ByteBuffer ReadBytes(ByteBuffer arg0, int arg1)
Parameters
arg0
ByteBufferarg1
int
Returns
ReadBytes(ByteBuffer, int, int)
public static byte[] ReadBytes(ByteBuffer arg0, int arg1, int arg2)
Parameters
arg0
ByteBufferarg1
intarg2
int
Returns
ReadFileAsString(String)
public static String ReadFileAsString(String arg0)
Parameters
Returns
Exceptions
ReadFully(InputStream, ByteBuffer)
public static int ReadFully(InputStream arg0, ByteBuffer arg1)
Parameters
arg0
InputStreamarg1
ByteBuffer
Returns
Exceptions
ReadFully(FileChannel, ByteBuffer, long)
public static void ReadFully(FileChannel arg0, ByteBuffer arg1, long arg2)
Parameters
arg0
FileChannelarg1
ByteBufferarg2
long
Exceptions
ReadFullyOrFail(FileChannel, ByteBuffer, long, String)
public static void ReadFullyOrFail(FileChannel arg0, ByteBuffer arg1, long arg2, String arg3)
Parameters
arg0
FileChannelarg1
ByteBufferarg2
longarg3
String
Exceptions
ReplaceSuffix(String, String, String)
public static String ReplaceSuffix(String arg0, String arg1, String arg2)
Parameters
Returns
Require(bool)
public static void Require(bool arg0)
Parameters
Require(bool, String)
public static void Require(bool arg0, String arg1)
Parameters
Safe<T>(List<T>)
public static List<T> Safe<T>(List<T> arg0)
Parameters
Returns
Type Parameters
T
SizeDelimited(ByteBuffer, int)
public static ByteBuffer SizeDelimited(ByteBuffer arg0, int arg1)
Parameters
arg0
ByteBufferarg1
int
Returns
Sleep(long)
public static void Sleep(long arg0)
Parameters
Sorted<T>(Collection<T>)
public static List<T> Sorted<T>(Collection<T> arg0)
Parameters
arg0
Collection<T>
Returns
Type Parameters
T
StackTrace(JVMBridgeException)
public static String StackTrace(JVMBridgeException arg0)
Parameters
arg0
JVMBridgeException
Returns
To32BitField(Set<Byte>)
public static int To32BitField(Set<Byte> arg0)
Parameters
Returns
ToArray(ByteBuffer)
public static byte[] ToArray(ByteBuffer arg0)
Parameters
arg0
ByteBuffer
Returns
ToArray(ByteBuffer, int)
public static byte[] ToArray(ByteBuffer arg0, int arg1)
Parameters
arg0
ByteBufferarg1
int
Returns
ToArray(ByteBuffer, int, int)
public static byte[] ToArray(ByteBuffer arg0, int arg1, int arg2)
Parameters
arg0
ByteBufferarg1
intarg2
int
Returns
ToList<T>(Iterable<T>)
public static List<T> ToList<T>(Iterable<T> arg0)
Parameters
Returns
Type Parameters
T
ToList<T>(Iterator<T>)
public static List<T> ToList<T>(Iterator<T> arg0)
Parameters
Returns
Type Parameters
T
ToList<T>(Iterator<T>, Predicate<T>)
public static List<T> ToList<T>(Iterator<T> arg0, Predicate<T> arg1)
Parameters
Returns
Type Parameters
T
ToLogDateTimeFormat(long)
public static String ToLogDateTimeFormat(long arg0)
Parameters
Returns
ToNullableArray(ByteBuffer)
public static byte[] ToNullableArray(ByteBuffer arg0)
Parameters
arg0
ByteBuffer
Returns
ToPositive(int)
public static int ToPositive(int arg0)
Parameters
Returns
TryAll(List<Callable<Void>>)
public static void TryAll(List<Callable<Void>> arg0)
Parameters
Exceptions
Union<E>(Supplier<Set<E>>, params Set<E>[])
public static Set<E> Union<E>(Supplier<Set<E>> arg0, params Set<E>[] arg1)
Parameters
Returns
Type Parameters
E
Utf8(String)
public static byte[] Utf8(String arg0)
Parameters
Returns
Utf8(ByteBuffer)
public static String Utf8(ByteBuffer arg0)
Parameters
arg0
ByteBuffer
Returns
Utf8(ByteBuffer, int)
public static String Utf8(ByteBuffer arg0, int arg1)
Parameters
arg0
ByteBufferarg1
int
Returns
Utf8(ByteBuffer, int, int)
public static String Utf8(ByteBuffer arg0, int arg1, int arg2)
Parameters
arg0
ByteBufferarg1
intarg2
int
Returns
Utf8(byte[])
public static String Utf8(byte[] arg0)
Parameters
Returns
Utf8Length(CharSequence)
public static int Utf8Length(CharSequence arg0)
Parameters
arg0
CharSequence
Returns
ValidHostPattern(String)
public static bool ValidHostPattern(String arg0)
Parameters
Returns
WrapNullable(byte[])
public static ByteBuffer WrapNullable(byte[] arg0)
Parameters
Returns
WriteFully(FileChannel, ByteBuffer)
public static void WriteFully(FileChannel arg0, ByteBuffer arg1)
Parameters
arg0
FileChannelarg1
ByteBuffer
Exceptions
WriteTo(DataOutput, ByteBuffer, int)
public static void WriteTo(DataOutput arg0, ByteBuffer arg1, int arg2)
Parameters
arg0
DataOutputarg1
ByteBufferarg2
int