PARAGRAPH_DELIMETER, PARAGRAPH_SEPARATOR, SEEK_CUR, SEEK_END, SEEK_SET
Constructor and Description |
---|
CRLFStreamWrapper(Stream stream)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
int |
bufferedAvailable()
Deprecated.
|
void |
clearerr()
Deprecated.
|
void |
fclose()
Deprecated.
|
boolean |
feof()
Deprecated.
Return true when at end of file (EOF).
|
int |
fflush()
Deprecated.
|
int |
fgetc()
Deprecated.
|
long |
fgetpos()
Deprecated.
Get the current position within the file associated with this
handler.
|
org.jruby.util.ByteList |
fgets(org.jruby.util.ByteList separatorString)
Deprecated.
|
void |
fputc(int c)
Deprecated.
|
org.jruby.util.ByteList |
fread(int number)
Deprecated.
|
void |
freopen(Ruby runtime,
java.lang.String path,
ModeFlags modes)
Deprecated.
|
void |
ftruncate(long newLength)
Deprecated.
|
int |
fwrite(org.jruby.util.ByteList string)
Deprecated.
|
java.nio.ByteBuffer |
getBuffer()
Deprecated.
|
java.nio.channels.Channel |
getChannel()
Deprecated.
|
ChannelDescriptor |
getDescriptor()
Deprecated.
|
int |
getline(org.jruby.util.ByteList dst,
byte terminator)
Deprecated.
Read all bytes up to and including a terminator byte.
|
int |
getline(org.jruby.util.ByteList dst,
byte terminator,
long limit)
Deprecated.
Reads all bytes up to and including a terminator byte or until limit is reached.
|
ModeFlags |
getModes()
Deprecated.
|
boolean |
isAutoclose()
Deprecated.
|
boolean |
isBinmode()
Deprecated.
|
boolean |
isBlocking()
Deprecated.
|
boolean |
isSync()
Deprecated.
|
void |
lseek(long offset,
int type)
Deprecated.
Perform a seek based on pos().
|
java.io.InputStream |
newInputStream()
Deprecated.
|
java.io.OutputStream |
newOutputStream()
Deprecated.
|
org.jruby.util.ByteList |
read(int number)
Deprecated.
|
org.jruby.util.ByteList |
readall()
Deprecated.
|
boolean |
readDataBuffered()
Deprecated.
|
int |
ready()
Deprecated.
Implement IO#ready? as per io/wait in MRI.
|
int |
refillBuffer()
Deprecated.
|
void |
setAutoclose(boolean autoclose)
Deprecated.
|
void |
setBinmode()
Deprecated.
|
void |
setBlocking(boolean blocking)
Deprecated.
|
void |
setModes(ModeFlags modes)
Deprecated.
|
void |
setSync(boolean sync)
Deprecated.
|
void |
sync()
Deprecated.
Flush and sync all writes to the filesystem.
|
int |
ungetc(int c)
Deprecated.
|
void |
waitUntilReady()
Deprecated.
Implement IO#wait as per io/wait in MRI.
|
boolean |
writeDataBuffered()
Deprecated.
|
public CRLFStreamWrapper(Stream stream)
public ChannelDescriptor getDescriptor()
getDescriptor
in interface Stream
public java.nio.ByteBuffer getBuffer()
public void setModes(ModeFlags modes)
public int bufferedAvailable()
bufferedAvailable
in interface Stream
public void setBinmode()
setBinmode
in interface Stream
public boolean isAutoclose()
isAutoclose
in interface Stream
public void setAutoclose(boolean autoclose)
setAutoclose
in interface Stream
public org.jruby.util.ByteList fgets(org.jruby.util.ByteList separatorString) throws java.io.IOException, BadDescriptorException, java.io.EOFException
fgets
in interface Stream
java.io.IOException
BadDescriptorException
java.io.EOFException
public org.jruby.util.ByteList readall() throws java.io.IOException, BadDescriptorException, java.io.EOFException
readall
in interface Stream
java.io.IOException
BadDescriptorException
java.io.EOFException
public int getline(org.jruby.util.ByteList dst, byte terminator) throws java.io.IOException, BadDescriptorException
Stream
If the terminator byte is found, it will be the last byte in the output buffer.
getline
in interface Stream
dst
- The output buffer.terminator
- The byte to terminate reading.java.io.IOException
BadDescriptorException
public int getline(org.jruby.util.ByteList dst, byte terminator, long limit) throws java.io.IOException, BadDescriptorException
Stream
If the terminator byte is found, it will be the last byte in the output buffer.
getline
in interface Stream
dst
- The output buffer.terminator
- The byte to terminate reading.limit
- the number of bytes to read unless EOF or terminator is foundjava.io.IOException
BadDescriptorException
public org.jruby.util.ByteList fread(int number) throws java.io.IOException, BadDescriptorException, java.io.EOFException
fread
in interface Stream
java.io.IOException
BadDescriptorException
java.io.EOFException
public int fwrite(org.jruby.util.ByteList string) throws java.io.IOException, BadDescriptorException
fwrite
in interface Stream
java.io.IOException
BadDescriptorException
public int fgetc() throws java.io.IOException, BadDescriptorException, java.io.EOFException
fgetc
in interface Stream
java.io.IOException
BadDescriptorException
java.io.EOFException
public void fputc(int c) throws java.io.IOException, BadDescriptorException
fputc
in interface Stream
java.io.IOException
BadDescriptorException
public org.jruby.util.ByteList read(int number) throws java.io.IOException, BadDescriptorException, java.io.EOFException
read
in interface Stream
java.io.IOException
BadDescriptorException
java.io.EOFException
public void fclose() throws java.io.IOException, BadDescriptorException
fclose
in interface Stream
java.io.IOException
BadDescriptorException
public int fflush() throws java.io.IOException, BadDescriptorException
fflush
in interface Stream
java.io.IOException
BadDescriptorException
public void sync() throws java.io.IOException, BadDescriptorException
Stream
Flush and sync all writes to the filesystem.
sync
in interface Stream
java.io.IOException
- if the sync does not workBadDescriptorException
public boolean feof() throws java.io.IOException, BadDescriptorException
Stream
Return true when at end of file (EOF).
feof
in interface Stream
java.io.IOException
BadDescriptorException
public long fgetpos() throws java.io.IOException, PipeException, BadDescriptorException, InvalidValueException
Stream
Get the current position within the file associated with this handler.
fgetpos
in interface Stream
java.io.IOException
PipeException
- ESPIPE (illegal seek) when not a fileBadDescriptorException
InvalidValueException
public void lseek(long offset, int type) throws java.io.IOException, InvalidValueException, PipeException, BadDescriptorException
Stream
Perform a seek based on pos().
lseek
in interface Stream
java.io.IOException
InvalidValueException
PipeException
BadDescriptorException
public void ftruncate(long newLength) throws java.io.IOException, PipeException, InvalidValueException, BadDescriptorException
ftruncate
in interface Stream
java.io.IOException
PipeException
InvalidValueException
BadDescriptorException
public int ready() throws java.io.IOException
Stream
public void waitUntilReady() throws java.io.IOException, java.lang.InterruptedException
Stream
waitUntilReady
in interface Stream
java.io.IOException
java.lang.InterruptedException
public boolean readDataBuffered()
readDataBuffered
in interface Stream
public boolean writeDataBuffered()
writeDataBuffered
in interface Stream
public java.io.InputStream newInputStream()
newInputStream
in interface Stream
public java.io.OutputStream newOutputStream()
newOutputStream
in interface Stream
public boolean isBlocking()
isBlocking
in interface Stream
public void setBlocking(boolean blocking) throws java.io.IOException
setBlocking
in interface Stream
java.io.IOException
public void freopen(Ruby runtime, java.lang.String path, ModeFlags modes) throws DirectoryAsFileException, java.io.IOException, InvalidValueException, PipeException, BadDescriptorException
freopen
in interface Stream
DirectoryAsFileException
java.io.IOException
InvalidValueException
PipeException
BadDescriptorException
public java.nio.channels.Channel getChannel()
getChannel
in interface Stream
public final int refillBuffer() throws java.io.IOException
refillBuffer
in interface Stream
java.io.IOException
Copyright © 2001-2018 JRuby. All Rights Reserved.