org.jruby.util
Class IOModes

java.lang.Object
  extended byorg.jruby.util.IOModes
All Implemented Interfaces:
java.lang.Cloneable

public class IOModes
extends java.lang.Object
implements java.lang.Cloneable

Author:
enebo

Field Summary
static int APPEND
           
static int BINARY
           
static int CREAT
           
static int EXCL
           
static int NOCTTY
           
static int NONBLOCK
           
static int RDONLY
           
static int RDWR
           
static int TRUNC
           
static int WRONLY
           
 
Constructor Summary
IOModes(Ruby runtime)
           
IOModes(Ruby runtime, long modes)
           
IOModes(Ruby runtime, java.lang.String modesString)
           
 
Method Summary
 void checkSubsetOf(IOModes superset)
           
 java.lang.Object clone()
           
static int convertModesStringToModesInt(Ruby runtime, java.lang.String modesString)
           
 boolean isAppendable()
           
 boolean isBinary()
           
 boolean isReadable()
           
 boolean isWritable()
           
 boolean isWriteable()
           
 boolean shouldTruncate()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

RDONLY

public static final int RDONLY
See Also:
Constant Field Values

WRONLY

public static final int WRONLY
See Also:
Constant Field Values

RDWR

public static final int RDWR
See Also:
Constant Field Values

CREAT

public static final int CREAT
See Also:
Constant Field Values

EXCL

public static final int EXCL
See Also:
Constant Field Values

NOCTTY

public static final int NOCTTY
See Also:
Constant Field Values

TRUNC

public static final int TRUNC
See Also:
Constant Field Values

APPEND

public static final int APPEND
See Also:
Constant Field Values

NONBLOCK

public static final int NONBLOCK
See Also:
Constant Field Values

BINARY

public static final int BINARY
See Also:
Constant Field Values
Constructor Detail

IOModes

public IOModes(Ruby runtime)

IOModes

public IOModes(Ruby runtime,
               java.lang.String modesString)

IOModes

public IOModes(Ruby runtime,
               long modes)
Method Detail

clone

public java.lang.Object clone()

isReadable

public boolean isReadable()

isWriteable

public boolean isWriteable()

isBinary

public boolean isBinary()

isWritable

public boolean isWritable()

isAppendable

public boolean isAppendable()

shouldTruncate

public boolean shouldTruncate()

checkSubsetOf

public void checkSubsetOf(IOModes superset)

toString

public java.lang.String toString()

convertModesStringToModesInt

public static int convertModesStringToModesInt(Ruby runtime,
                                               java.lang.String modesString)


Copyright © 2002-2007 JRuby Team. All Rights Reserved.