Top Description Inners Fields Constructors Methods
com.kenai.jffi

public final Class LastError

extends Object
Class Inheritance

Provides access to the value of errno on unix, or GetLastError on windows.

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class
LastError.SingletonHolder

Lazy-initialization singleton holder

Field Summary

Modifier and TypeField and Description
private final Foreign

Constructor Summary

AccessConstructor and Description
private
LastError()

Creates a new LastError instance

Method Summary

Modifier and TypeMethod and Description
public final int

Returns:

The value of errno/GetLastError()
get
()

Gets the errno set by the last C function invoked by the current thread.

public final int

Returns:

The value of errno/GetLastError()
getError
()

Deprecated
Gets the errno set by the last C function invoked by the current thread.
public static final LastError

Returns:

An instance of LastError
getInstance
()

Gets the singleton instance of the LastError object.

public final void
set(int
The value to set errno to.
value
)

Sets the system errno value.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

foreignback to summary
private final Foreign foreign
Annotations
@SuppressWarnings:FieldCanBeLocal, UnusedDeclaration

Constructor Detail

LastErrorback to summary
private LastError()

Creates a new LastError instance

Method Detail

getback to summary
public final int get()

Gets the errno set by the last C function invoked by the current thread.

Returns:int

The value of errno/GetLastError()

getErrorback to summary
public final int getError()

Deprecated

Gets the errno set by the last C function invoked by the current thread.

Returns:int

The value of errno/GetLastError()

Annotations
@Deprecated
getInstanceback to summary
public static final LastError getInstance()

Gets the singleton instance of the LastError object.

Returns:LastError

An instance of LastError

setback to summary
public final void set(int value)

Sets the system errno value.

Parameters
value:int

The value to set errno to.

com.kenai.jffi back to summary

private final Class LastError.SingletonHolder

extends Object
Class Inheritance

Lazy-initialization singleton holder

Field Summary

Modifier and TypeField and Description
pack-priv static final LastError

Constructor Summary

AccessConstructor and Description
private

Method Summary

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

INSTANCEback to summary
pack-priv static final LastError INSTANCE

Constructor Detail

SingletonHolderback to summary
private SingletonHolder()