Table of Contents

Class Preferences

Namespace
Java.Util.Prefs
Assembly
MASES.JNet.dll
public class Preferences : JVMBridgeBase<Preferences>, IDynamicMetaObjectProvider, IJVMBridgeCore, IDisposable, IJVMBridgeBaseStatic, IJVMBridgeBase, IJVMBridgeDefinition
Inheritance
JVMBridgeBase
JVMBridgeBase<Preferences>
Preferences
Implements
IJVMBridgeCore
IJVMBridgeBaseStatic
IJVMBridgeBase
IJVMBridgeDefinition
Derived
Inherited Members
JVMBridgeBase<Preferences>.IsAssignableFrom(IJavaType)
JVMBridgeBase<Preferences>.IsAssignableFrom<T>()
JVMBridgeBase<Preferences>.Execute<T>(params T[])
JVMBridgeBase<Preferences>.DynBridgeClazz
JVMBridgeBase<Preferences>.BridgeClazz
JVMBridgeBase.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.DynBridgeInstance
JVMBridgeBase.BridgeInstance
JVMBridgeBase.IsBridgeListener
Extension Methods

Constructors

Preferences()

Default constructor: even if the corresponding Java class does not have one, it is mandatory for JCOBridge

[Obsolete("Preferences class represents, in .NET, an instance of a JVM interface or abstract class. This public initializer is needed for JCOBridge internal use, other uses can produce unidentible behaviors.")]
public Preferences()

Preferences(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

[Obsolete("Preferences class represents, in .NET, an instance of a JVM interface or abstract class. This public initializer is needed for JCOBridge internal use, other uses can produce unidentible behaviors.")]
public Preferences(params object[] args)

Parameters

args object[]

Properties

BridgeClassName

public override string BridgeClassName { get; }

Property Value

string

IsBridgeAbstract

public override bool IsBridgeAbstract { get; }

Property Value

bool

IsBridgeCloseable

public override bool IsBridgeCloseable { get; }

Property Value

bool

IsBridgeInterface

public override bool IsBridgeInterface { get; }

Property Value

bool

IsBridgeStatic

public override bool IsBridgeStatic { get; }

Property Value

bool

MAX_KEY_LENGTH

public static int MAX_KEY_LENGTH { get; }

Property Value

int

MAX_NAME_LENGTH

public static int MAX_NAME_LENGTH { get; }

Property Value

int

MAX_VALUE_LENGTH

public static int MAX_VALUE_LENGTH { get; }

Property Value

int

Methods

AbsolutePath()

public String AbsolutePath()

Returns

String

String

AddNodeChangeListener(NodeChangeListener)

public void AddNodeChangeListener(NodeChangeListener arg0)

Parameters

arg0 NodeChangeListener

NodeChangeListener

AddPreferenceChangeListener(PreferenceChangeListener)

public void AddPreferenceChangeListener(PreferenceChangeListener arg0)

Parameters

arg0 PreferenceChangeListener

PreferenceChangeListener

ChildrenNames()

public String[] ChildrenNames()

Returns

String[]

String

Exceptions

BackingStoreException

Clear()

public void Clear()

Exceptions

BackingStoreException

ExportNode(OutputStream)

public void ExportNode(OutputStream arg0)

Parameters

arg0 OutputStream

OutputStream

Exceptions

IOException
BackingStoreException

ExportSubtree(OutputStream)

public void ExportSubtree(OutputStream arg0)

Parameters

arg0 OutputStream

OutputStream

Exceptions

IOException
BackingStoreException

Flush()

public void Flush()

Exceptions

BackingStoreException

Get(String, String)

public String Get(String arg0, String arg1)

Parameters

arg0 String

String

arg1 String

String

Returns

String

String

GetBoolean(String, bool)

public bool GetBoolean(String arg0, bool arg1)

Parameters

arg0 String

String

arg1 bool

bool

Returns

bool

bool

GetByteArray(String, byte[])

public byte[] GetByteArray(String arg0, byte[] arg1)

Parameters

arg0 String

String

arg1 byte[]

byte

Returns

byte[]

byte

GetDouble(String, double)

public double GetDouble(String arg0, double arg1)

Parameters

arg0 String

String

arg1 double

double

Returns

double

double

GetFloat(String, float)

public float GetFloat(String arg0, float arg1)

Parameters

arg0 String

String

arg1 float

float

Returns

float

float

GetInt(String, int)

public int GetInt(String arg0, int arg1)

Parameters

arg0 String

String

arg1 int

int

Returns

int

int

GetLong(String, long)

public long GetLong(String arg0, long arg1)

Parameters

arg0 String

String

arg1 long

long

Returns

long

long

ImportPreferences(InputStream)

public static void ImportPreferences(InputStream arg0)

Parameters

arg0 InputStream

InputStream

Exceptions

IOException
InvalidPreferencesFormatException

IsUserNode()

public bool IsUserNode()

Returns

bool

bool

Keys()

public String[] Keys()

Returns

String[]

String

Exceptions

BackingStoreException

Name()

public String Name()

Returns

String

String

Node(String)

public Preferences Node(String arg0)

Parameters

arg0 String

String

Returns

Preferences

Preferences

NodeExists(String)

public bool NodeExists(String arg0)

Parameters

arg0 String

String

Returns

bool

bool

Exceptions

BackingStoreException

Parent()

public Preferences Parent()

Returns

Preferences

Preferences

Put(String, String)

public void Put(String arg0, String arg1)

Parameters

arg0 String

String

arg1 String

String

PutBoolean(String, bool)

public void PutBoolean(String arg0, bool arg1)

Parameters

arg0 String

String

arg1 bool

bool

PutByteArray(String, byte[])

public void PutByteArray(String arg0, byte[] arg1)

Parameters

arg0 String

String

arg1 byte[]

byte

PutDouble(String, double)

public void PutDouble(String arg0, double arg1)

Parameters

arg0 String

String

arg1 double

double

PutFloat(String, float)

public void PutFloat(String arg0, float arg1)

Parameters

arg0 String

String

arg1 float

float

PutInt(String, int)

public void PutInt(String arg0, int arg1)

Parameters

arg0 String

String

arg1 int

int

PutLong(String, long)

public void PutLong(String arg0, long arg1)

Parameters

arg0 String

String

arg1 long

long

Remove(String)

public void Remove(String arg0)

Parameters

arg0 String

String

RemoveNode()

public void RemoveNode()

Exceptions

BackingStoreException

RemoveNodeChangeListener(NodeChangeListener)

public void RemoveNodeChangeListener(NodeChangeListener arg0)

Parameters

arg0 NodeChangeListener

NodeChangeListener

RemovePreferenceChangeListener(PreferenceChangeListener)

public void RemovePreferenceChangeListener(PreferenceChangeListener arg0)

Parameters

arg0 PreferenceChangeListener

PreferenceChangeListener

Sync()

public void Sync()

Exceptions

BackingStoreException

SystemNodeForPackage(Class)

public static Preferences SystemNodeForPackage(Class arg0)

Parameters

arg0 Class

Class

Returns

Preferences

Preferences

SystemRoot()

public static Preferences SystemRoot()

Returns

Preferences

Preferences

UserNodeForPackage(Class)

public static Preferences UserNodeForPackage(Class arg0)

Parameters

arg0 Class

Class

Returns

Preferences

Preferences

UserRoot()

public static Preferences UserRoot()

Returns

Preferences

Preferences