|
|||||||||||
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 IOHandler
public void close()
Close IO handler resources.
close
in class IOHandler
IOHandler.close()
public void flush()
flush
in class IOHandler
IOHandler.flush()
public java.io.InputStream getInputStream()
getInputStream
in class IOHandler
IOHandler.getInputStream()
public java.io.OutputStream getOutputStream()
getOutputStream
in class IOHandler
IOHandler.getOutputStream()
public boolean isEOF()
IOHandler
Return true when at end of file (EOF).
isEOF
in class IOHandler
IOHandler.isEOF()
public int pid()
IOHandler
Get the process ID associated with this handler.
pid
in class IOHandler
IOHandler.pid()
public long pos()
IOHandler
Get the current position within the file associated with this handler.
pos
in class IOHandler
IOHandler.pos()
public void resetByModes(IOModes modes)
resetByModes
in class IOHandler
public void rewind()
rewind
in class IOHandler
IOHandler.rewind()
public void seek(long offset, int type)
IOHandler
Perform a seek based on pos().
seek
in class IOHandler
IOHandler.seek(long, int)
public void sync() throws java.io.IOException
IOHandler
Flush and sync all writes to the filesystem.
sync
in class IOHandler
java.io.IOException
- if the sync does not workIOHandler.sync()
public int sysread() throws java.io.IOException
sysread
in class IOHandler
java.io.IOException
IOHandler.sysread()
public int syswrite(java.lang.String buf)
syswrite
in class IOHandler
IOHandler.syswrite(String buf)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |