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.
|
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 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 Streampublic java.nio.ByteBuffer getBuffer()
public void setModes(ModeFlags modes)
public int bufferedAvailable()
bufferedAvailable in interface Streampublic void setBinmode()
setBinmode in interface Streampublic boolean isAutoclose()
isAutoclose in interface Streampublic void setAutoclose(boolean autoclose)
setAutoclose in interface Streampublic ByteList fgets(ByteList separatorString) throws java.io.IOException, BadDescriptorException, java.io.EOFException
fgets in interface Streamjava.io.IOExceptionBadDescriptorExceptionjava.io.EOFExceptionpublic ByteList readall() throws java.io.IOException, BadDescriptorException, java.io.EOFException
readall in interface Streamjava.io.IOExceptionBadDescriptorExceptionjava.io.EOFExceptionpublic int getline(ByteList dst, byte terminator) throws java.io.IOException, BadDescriptorException
StreamIf the terminator byte is found, it will be the last byte in the output buffer.
getline in interface Streamdst - The output buffer.terminator - The byte to terminate reading.java.io.IOExceptionBadDescriptorExceptionpublic int getline(ByteList dst, byte terminator, long limit) throws java.io.IOException, BadDescriptorException
StreamIf the terminator byte is found, it will be the last byte in the output buffer.
getline in interface Streamdst - The output buffer.terminator - The byte to terminate reading.limit - the number of bytes to read unless EOF or terminator is foundjava.io.IOExceptionBadDescriptorExceptionpublic ByteList fread(int number) throws java.io.IOException, BadDescriptorException, java.io.EOFException
fread in interface Streamjava.io.IOExceptionBadDescriptorExceptionjava.io.EOFExceptionpublic int fwrite(ByteList string) throws java.io.IOException, BadDescriptorException
fwrite in interface Streamjava.io.IOExceptionBadDescriptorExceptionpublic int fgetc()
throws java.io.IOException,
BadDescriptorException,
java.io.EOFException
fgetc in interface Streamjava.io.IOExceptionBadDescriptorExceptionjava.io.EOFExceptionpublic void fputc(int c)
throws java.io.IOException,
BadDescriptorException
fputc in interface Streamjava.io.IOExceptionBadDescriptorExceptionpublic ByteList read(int number) throws java.io.IOException, BadDescriptorException, java.io.EOFException
read in interface Streamjava.io.IOExceptionBadDescriptorExceptionjava.io.EOFExceptionpublic void fclose()
throws java.io.IOException,
BadDescriptorException
fclose in interface Streamjava.io.IOExceptionBadDescriptorExceptionpublic int fflush()
throws java.io.IOException,
BadDescriptorException
fflush in interface Streamjava.io.IOExceptionBadDescriptorExceptionpublic void sync()
throws java.io.IOException,
BadDescriptorException
StreamFlush and sync all writes to the filesystem.
sync in interface Streamjava.io.IOException - if the sync does not workBadDescriptorExceptionpublic boolean feof()
throws java.io.IOException,
BadDescriptorException
StreamReturn true when at end of file (EOF).
feof in interface Streamjava.io.IOExceptionBadDescriptorExceptionpublic long fgetpos()
throws java.io.IOException,
PipeException,
BadDescriptorException,
InvalidValueException
StreamGet the current position within the file associated with this handler.
fgetpos in interface Streamjava.io.IOExceptionPipeException - ESPIPE (illegal seek) when not a fileBadDescriptorExceptionInvalidValueExceptionpublic void lseek(long offset,
int type)
throws java.io.IOException,
InvalidValueException,
PipeException,
BadDescriptorException
StreamPerform a seek based on pos().
lseek in interface Streamjava.io.IOExceptionInvalidValueExceptionPipeExceptionBadDescriptorExceptionpublic void ftruncate(long newLength)
throws java.io.IOException,
PipeException,
InvalidValueException,
BadDescriptorException
ftruncate in interface Streamjava.io.IOExceptionPipeExceptionInvalidValueExceptionBadDescriptorExceptionpublic int ready()
throws java.io.IOException
Streampublic void waitUntilReady()
throws java.io.IOException,
java.lang.InterruptedException
StreamwaitUntilReady in interface Streamjava.io.IOExceptionjava.lang.InterruptedExceptionpublic boolean readDataBuffered()
readDataBuffered in interface Streampublic boolean writeDataBuffered()
writeDataBuffered in interface Streampublic java.io.InputStream newInputStream()
newInputStream in interface Streampublic java.io.OutputStream newOutputStream()
newOutputStream in interface Streampublic boolean isBlocking()
isBlocking in interface Streampublic void setBlocking(boolean blocking)
throws java.io.IOException
setBlocking in interface Streamjava.io.IOExceptionpublic void freopen(Ruby runtime, java.lang.String path, ModeFlags modes) throws DirectoryAsFileException, java.io.IOException, InvalidValueException, PipeException, BadDescriptorException
freopen in interface StreamDirectoryAsFileExceptionjava.io.IOExceptionInvalidValueExceptionPipeExceptionBadDescriptorExceptionpublic java.nio.channels.Channel getChannel()
getChannel in interface Streampublic final int refillBuffer()
throws java.io.IOException
refillBuffer in interface Streamjava.io.IOExceptionCopyright © 2001-2020 JRuby. All Rights Reserved.