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