|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jruby.util.IOHandler
Field Summary | |
protected int |
fileno
|
protected boolean |
isOpen
|
protected boolean |
isSync
|
protected IOModes |
modes
|
static int |
SEEK_CUR
|
static int |
SEEK_END
|
static int |
SEEK_SET
|
Constructor Summary | |
protected |
IOHandler(Ruby ruby)
|
Method Summary | |
protected void |
checkOpen()
|
void |
checkPermissionsSubsetOf(IOModes subsetModes)
|
protected void |
checkReadable()
|
protected void |
checkWriteable()
|
abstract IOHandler |
cloneIOHandler()
|
abstract void |
close()
|
abstract void |
flush()
|
int |
getc()
|
int |
getFileno()
|
abstract java.io.InputStream |
getInputStream()
|
java.lang.String |
getModeString()
|
abstract java.io.OutputStream |
getOutputStream()
|
protected Ruby |
getRuntime()
|
java.lang.String |
gets(java.lang.String separatorString)
|
java.lang.String |
getsEntireStream()
|
abstract boolean |
isEOF()
Return true when at end of file (EOF). |
boolean |
isOpen()
|
boolean |
isReadable()
|
boolean |
isSync()
|
boolean |
isWriteable()
|
abstract int |
pid()
Get the process ID associated with this handler. |
abstract long |
pos()
Get the current position within the file associated with this handler. |
void |
putc(int c)
|
int |
read()
|
java.lang.String |
read(int number)
|
void |
reset(IOModes subsetModes)
|
protected abstract void |
resetByModes(IOModes modes)
|
abstract void |
rewind()
|
abstract void |
seek(long offset,
int type)
Perform a seek based on pos(). |
void |
setFileno(int fileno)
|
void |
setIsSync(boolean isSync)
|
abstract void |
sync()
Flush and sync all writes to the filesystem. |
abstract int |
sysread()
|
java.lang.String |
sysread(int number)
|
abstract int |
syswrite(java.lang.String buf)
|
void |
ungetc(int c)
|
int |
write(java.lang.String string)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int SEEK_SET
public static final int SEEK_CUR
public static final int SEEK_END
protected IOModes modes
protected int fileno
protected boolean isOpen
protected boolean isSync
Constructor Detail |
protected IOHandler(Ruby ruby)
Method Detail |
public int getFileno()
public void setFileno(int fileno)
protected Ruby getRuntime()
public boolean isReadable()
public boolean isOpen()
public boolean isWriteable()
protected void checkOpen()
protected void checkReadable()
protected void checkWriteable()
public void checkPermissionsSubsetOf(IOModes subsetModes)
public java.lang.String getModeString()
public boolean isSync()
public void setIsSync(boolean isSync)
public java.lang.String gets(java.lang.String separatorString) throws java.io.IOException
java.io.IOException
public java.lang.String getsEntireStream()
public int read()
public int getc()
public java.lang.String read(int number)
public void ungetc(int c)
public void putc(int c)
public void reset(IOModes subsetModes)
public int write(java.lang.String string)
public java.lang.String sysread(int number)
public abstract IOHandler cloneIOHandler()
public abstract void close()
public abstract void flush()
public abstract java.io.InputStream getInputStream()
public abstract java.io.OutputStream getOutputStream()
public abstract boolean isEOF()
Return true when at end of file (EOF).
public abstract int pid()
Get the process ID associated with this handler.
public abstract long pos()
Get the current position within the file associated with this handler.
Errno::ESPIPE
- (illegal seek) when not a fileprotected abstract void resetByModes(IOModes modes)
public abstract void rewind()
public abstract void seek(long offset, int type)
Perform a seek based on pos().
public abstract void sync() throws java.io.IOException
Flush and sync all writes to the filesystem.
java.io.IOException
- if the sync does not workpublic abstract int sysread() throws java.io.IOException
java.io.IOException
public abstract int syswrite(java.lang.String buf)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |