@Deprecated
public interface Stream
| Modifier and Type | Field and Description |
|---|---|
static ByteList |
PARAGRAPH_DELIMETER
Deprecated.
|
static 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.
|
ByteList |
fgets(ByteList separatorString)
Deprecated.
|
void |
fputc(int c)
Deprecated.
|
ByteList |
fread(int number)
Deprecated.
|
void |
freopen(Ruby runtime,
java.lang.String path,
ModeFlags modes)
Deprecated.
|
void |
ftruncate(long newLength)
Deprecated.
|
int |
fwrite(ByteList string)
Deprecated.
|
java.nio.ByteBuffer |
getBuffer()
Deprecated.
|
java.nio.channels.Channel |
getChannel()
Deprecated.
|
ChannelDescriptor |
getDescriptor()
Deprecated.
|
int |
getline(ByteList dst,
byte terminator)
Deprecated.
Read all bytes up to and including a terminator byte.
|
int |
getline(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.
|
ByteList |
read(int number)
Deprecated.
|
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 ByteList PARAGRAPH_DELIMETER
static final 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.IOExceptionByteList fgets(ByteList separatorString) throws java.io.IOException, BadDescriptorException, java.io.EOFException
java.io.IOExceptionBadDescriptorExceptionjava.io.EOFExceptionByteList readall() throws java.io.IOException, BadDescriptorException, java.io.EOFException
java.io.IOExceptionBadDescriptorExceptionjava.io.EOFExceptionint getline(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.IOExceptionBadDescriptorExceptionint getline(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.IOExceptionBadDescriptorExceptionByteList fread(int number) throws java.io.IOException, BadDescriptorException, java.io.EOFException
java.io.IOExceptionBadDescriptorExceptionjava.io.EOFExceptionint fwrite(ByteList string) throws java.io.IOException, BadDescriptorException
java.io.IOExceptionBadDescriptorExceptionint fgetc()
throws java.io.IOException,
BadDescriptorException,
java.io.EOFException
java.io.IOExceptionBadDescriptorExceptionjava.io.EOFExceptionint ungetc(int c)
void fputc(int c)
throws java.io.IOException,
BadDescriptorException
java.io.IOExceptionBadDescriptorExceptionByteList read(int number) throws java.io.IOException, BadDescriptorException, java.io.EOFException
java.io.IOExceptionBadDescriptorExceptionjava.io.EOFExceptionvoid fclose()
throws java.io.IOException,
BadDescriptorException
java.io.IOExceptionBadDescriptorExceptionint fflush()
throws java.io.IOException,
BadDescriptorException
java.io.IOExceptionBadDescriptorExceptionvoid sync()
throws java.io.IOException,
BadDescriptorException
Flush and sync all writes to the filesystem.
java.io.IOException - if the sync does not workBadDescriptorExceptionboolean feof()
throws java.io.IOException,
BadDescriptorException
Return true when at end of file (EOF).
java.io.IOExceptionBadDescriptorExceptionlong fgetpos()
throws java.io.IOException,
PipeException,
BadDescriptorException,
InvalidValueException
Get the current position within the file associated with this handler.
java.io.IOExceptionPipeException - ESPIPE (illegal seek) when not a fileBadDescriptorExceptionInvalidValueExceptionvoid lseek(long offset,
int type)
throws java.io.IOException,
InvalidValueException,
PipeException,
BadDescriptorException
Perform a seek based on pos().
java.io.IOExceptionPipeExceptionInvalidValueExceptionBadDescriptorExceptionvoid ftruncate(long newLength)
throws java.io.IOException,
PipeException,
InvalidValueException,
BadDescriptorException
java.io.IOExceptionPipeExceptionInvalidValueExceptionBadDescriptorExceptionint ready() throws java.io.IOException
java.io.IOExceptionvoid waitUntilReady()
throws java.io.IOException,
java.lang.InterruptedException
java.io.IOExceptionjava.lang.InterruptedExceptionboolean readDataBuffered()
boolean writeDataBuffered()
java.io.InputStream newInputStream()
java.io.OutputStream newOutputStream()
boolean isBlocking()
void setBlocking(boolean blocking)
throws java.io.IOException
java.io.IOExceptionvoid freopen(Ruby runtime, java.lang.String path, ModeFlags modes) throws DirectoryAsFileException, java.io.IOException, InvalidValueException, PipeException, BadDescriptorException
DirectoryAsFileExceptionjava.io.IOExceptionInvalidValueExceptionPipeExceptionBadDescriptorExceptionvoid setBinmode()
boolean isBinmode()
java.nio.channels.Channel getChannel()
boolean isAutoclose()
void setAutoclose(boolean autoclose)
Copyright © 2001-2019 JRuby. All Rights Reserved.