Package org.gnome.glib
Enum Class IOFlags
- All Implemented Interfaces:
Enumeration
,Serializable
,Comparable<IOFlags>
,Constable
@Generated("io.github.jwharm.JavaGI")
public enum IOFlags
extends Enum<IOFlags>
implements Enumeration
Specifies properties of a
GIOChannel
. Some of the flags can only be
read with g_io_channel_get_flags(), but not changed with
g_io_channel_set_flags().-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionturns on append mode, corresponds toO_APPEND
(see the documentation of the UNIX open() syscall)indicates that the io channel is readable.indicates that the io channel is seekable, i.e.indicates that the io channel is writable.the mask that specifies all the valid flags.turns on nonblocking mode, corresponds toO_NONBLOCK
/O_NDELAY
(see the documentation of the UNIX open() syscall)no special flags set.the mask of the flags that the user can modify with g_io_channel_set_flags() -
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
getValue()
Get the numeric value of this enumstatic IOFlags
of
(int value) Create a new IOFlags for the provided valuestatic IOFlags
Returns the enum constant of this class with the specified name.static IOFlags[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NONE
no special flags set. Since: 2.74 -
APPEND
turns on append mode, corresponds toO_APPEND
(see the documentation of the UNIX open() syscall) -
NONBLOCK
turns on nonblocking mode, corresponds toO_NONBLOCK
/O_NDELAY
(see the documentation of the UNIX open() syscall) -
IS_READABLE
indicates that the io channel is readable. This flag cannot be changed. -
IS_WRITABLE
indicates that the io channel is writable. This flag cannot be changed. -
IS_SEEKABLE
indicates that the io channel is seekable, i.e. that g_io_channel_seek_position() can be used on it. This flag cannot be changed. -
MASK
the mask that specifies all the valid flags. -
SET_MASK
the mask of the flags that the user can modify with g_io_channel_set_flags()
-
-
Field Details
-
IS_WRITEABLE
a misspelled version ofGIOFLAGISWRITABLE
that existed before the spelling was fixed in GLib 2.30. It is kept here for compatibility reasons. Deprecated since 2.30 -
GET_MASK
the mask of the flags that are returned from g_io_channel_get_flags()
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
of
Create a new IOFlags for the provided value- Parameters:
value
- the bitfield value- Returns:
- the bitfield for the provided value
-
getValue
public int getValue()Get the numeric value of this enum- Specified by:
getValue
in interfaceEnumeration
- Returns:
- the enum value
-