|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.jruby.util.IOHandler
org.jruby.util.IOHandlerUnseekable
| Field Summary | |
protected java.io.InputStream |
input
|
protected java.io.OutputStream |
output
|
| Fields inherited from class org.jruby.util.IOHandler |
fileno, isOpen, isSync, modes, SEEK_CUR, SEEK_END, SEEK_SET |
| Constructor Summary | |
IOHandlerUnseekable(Ruby ruby,
java.io.InputStream inStream,
java.io.OutputStream outStream)
|
|
IOHandlerUnseekable(Ruby ruby,
int fileno)
|
|
IOHandlerUnseekable(Ruby ruby,
int fileno,
java.lang.String mode)
|
|
| Method Summary | |
IOHandler |
cloneIOHandler()
|
void |
close()
Close IO handler resources. |
void |
flush()
|
java.io.InputStream |
getInputStream()
|
java.io.OutputStream |
getOutputStream()
|
boolean |
isEOF()
Return true when at end of file (EOF). |
int |
pid()
Get the process ID associated with this handler. |
long |
pos()
Get the current position within the file associated with this handler. |
void |
resetByModes(IOModes modes)
|
void |
rewind()
|
void |
seek(long offset,
int type)
Perform a seek based on pos(). |
void |
sync()
Flush and sync all writes to the filesystem. |
int |
sysread()
|
int |
syswrite(java.lang.String buf)
|
| Methods inherited from class org.jruby.util.IOHandler |
checkOpen, checkPermissionsSubsetOf, checkReadable, checkWriteable, getc, getFileno, getModeString, getRuntime, gets, getsEntireStream, isOpen, isReadable, isSync, isWriteable, putc, read, read, reset, setFileno, setIsSync, sysread, ungetc, write |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected java.io.InputStream input
protected java.io.OutputStream output
| Constructor Detail |
public IOHandlerUnseekable(Ruby ruby,
java.io.InputStream inStream,
java.io.OutputStream outStream)
inStream - outStream -
public IOHandlerUnseekable(Ruby ruby,
int fileno)
public IOHandlerUnseekable(Ruby ruby,
int fileno,
java.lang.String mode)
| Method Detail |
public IOHandler cloneIOHandler()
cloneIOHandler in class IOHandlerpublic void close()
Close IO handler resources.
close in class IOHandlerIOHandler.close()public void flush()
flush in class IOHandlerIOHandler.flush()public java.io.InputStream getInputStream()
getInputStream in class IOHandlerIOHandler.getInputStream()public java.io.OutputStream getOutputStream()
getOutputStream in class IOHandlerIOHandler.getOutputStream()public boolean isEOF()
IOHandlerReturn true when at end of file (EOF).
isEOF in class IOHandlerIOHandler.isEOF()public int pid()
IOHandlerGet the process ID associated with this handler.
pid in class IOHandlerIOHandler.pid()public long pos()
IOHandlerGet the current position within the file associated with this handler.
pos in class IOHandlerIOHandler.pos()public void resetByModes(IOModes modes)
resetByModes in class IOHandlerpublic void rewind()
rewind in class IOHandlerIOHandler.rewind()
public void seek(long offset,
int type)
IOHandlerPerform a seek based on pos().
seek in class IOHandlerIOHandler.seek(long, int)
public void sync()
throws java.io.IOException
IOHandlerFlush and sync all writes to the filesystem.
sync in class IOHandlerjava.io.IOException - if the sync does not workIOHandler.sync()
public int sysread()
throws java.io.IOException
sysread in class IOHandlerjava.io.IOExceptionIOHandler.sysread()public int syswrite(java.lang.String buf)
syswrite in class IOHandlerIOHandler.syswrite(String buf)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||