org.jruby.util.io
Class OpenFile
java.lang.Object
org.jruby.util.io.OpenFile
public class OpenFile
- extends java.lang.Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
READABLE
public static final int READABLE
- See Also:
- Constant Field Values
WRITABLE
public static final int WRITABLE
- See Also:
- Constant Field Values
READWRITE
public static final int READWRITE
- See Also:
- Constant Field Values
APPEND
public static final int APPEND
- See Also:
- Constant Field Values
CREATE
public static final int CREATE
- See Also:
- Constant Field Values
BINMODE
public static final int BINMODE
- See Also:
- Constant Field Values
SYNC
public static final int SYNC
- See Also:
- Constant Field Values
WBUF
public static final int WBUF
- See Also:
- Constant Field Values
RBUF
public static final int RBUF
- See Also:
- Constant Field Values
WSPLIT
public static final int WSPLIT
- See Also:
- Constant Field Values
WSPLIT_INITIALIZED
public static final int WSPLIT_INITIALIZED
- See Also:
- Constant Field Values
SYNCWRITE
public static final int SYNCWRITE
- See Also:
- Constant Field Values
OpenFile
public OpenFile()
getMainStream
public Stream getMainStream()
setMainStream
public void setMainStream(Stream mainStream)
getPipeStream
public Stream getPipeStream()
setPipeStream
public void setPipeStream(Stream pipeStream)
getWriteStream
public Stream getWriteStream()
getMode
public int getMode()
getModeAsString
public java.lang.String getModeAsString(Ruby runtime)
getStringFromMode
public static java.lang.String getStringFromMode(int mode)
checkReadable
public void checkReadable(Ruby runtime)
throws java.io.IOException,
BadDescriptorException,
PipeException,
InvalidValueException
- Throws:
java.io.IOException
BadDescriptorException
PipeException
InvalidValueException
seek
public void seek(long offset,
int whence)
throws java.io.IOException,
InvalidValueException,
PipeException,
BadDescriptorException
- Throws:
java.io.IOException
InvalidValueException
PipeException
BadDescriptorException
fflush
public void fflush(Stream stream)
throws java.io.IOException,
BadDescriptorException
- Throws:
java.io.IOException
BadDescriptorException
checkWritable
public void checkWritable(Ruby runtime)
throws java.io.IOException,
BadDescriptorException,
InvalidValueException,
PipeException
- Throws:
java.io.IOException
BadDescriptorException
InvalidValueException
PipeException
checkClosed
public void checkClosed(Ruby runtime)
isOpen
public boolean isOpen()
isReadable
public boolean isReadable()
isWritable
public boolean isWritable()
isReadBuffered
public boolean isReadBuffered()
setReadBuffered
public void setReadBuffered()
isWriteBuffered
public boolean isWriteBuffered()
setWriteBuffered
public void setWriteBuffered()
setSync
public void setSync(boolean sync)
isSync
public boolean isSync()
areBothEOF
public boolean areBothEOF()
throws java.io.IOException,
BadDescriptorException
- Throws:
java.io.IOException
BadDescriptorException
setMode
public void setMode(int modes)
getProcess
public java.lang.Process getProcess()
setProcess
public void setProcess(java.lang.Process process)
getPid
public long getPid()
getLineNumber
public int getLineNumber()
setLineNumber
public void setLineNumber(int lineNumber)
getPath
public java.lang.String getPath()
setPath
public void setPath(java.lang.String path)
getFinalizer
public OpenFile.Finalizer getFinalizer()
setFinalizer
public void setFinalizer(OpenFile.Finalizer finalizer)
cleanup
public void cleanup(Ruby runtime,
boolean raise)
finalize
public void finalize(Ruby runtime,
boolean raise)
Copyright © 2002-2007 JRuby Team. All Rights Reserved.