| java.lang.Object java.io.InputStream com.caucho.quercus.lib.file.ReadStreamInput
All known Subclasses: com.caucho.quercus.lib.zlib.ZlibInputStream, com.caucho.quercus.lib.file.FileInput, com.caucho.quercus.lib.zip.ZipEntryInputStream, com.caucho.quercus.lib.file.PopenInput, com.caucho.quercus.lib.ProcOpenInput,
Method Summary | |
public StringValue | appendTo(StringValue builder) Appends to a string builder. | public void | close() Closes the file. | public void | closeRead() Closes the stream for reading. | public InputStream | getInputStream() Returns the input stream. | public long | getPosition() Returns the current location in the file. | public String | getResourceType() | public void | init(ReadStream is) | public boolean | isEOF() Returns true on the EOF. | public BinaryInput | openCopy() Opens a copy. | public int | read() Reads a character from a file, returning -1 on EOF. | public int | read(byte[] buffer, int offset, int length) Reads a buffer from a file, returning -1 on EOF. | public int | read(char[] buffer, int offset, int length) Reads a buffer from a file, returning -1 on EOF. | public StringValue | read(int length) Reads into a binary builder. | public StringValue | readLine(long length) Reads a line from a file, returning null on EOF. | public boolean | readOptionalLinefeed() | public long | seek(long offset, int whence) | public void | setEncoding(String encoding) | public boolean | setPosition(long offset) Returns the current location in the file. | public Value | stat() | public Object | toJavaObject() | public String | toString() Converts to a string. | public void | unread() | public void | writeToStream(OutputStream os, int length) |
ReadStreamInput | public ReadStreamInput(Env env)(Code) | | |
close | public void close()(Code) | | Closes the file.
|
closeRead | public void closeRead()(Code) | | Closes the stream for reading.
|
getPosition | public long getPosition()(Code) | | Returns the current location in the file.
|
init | public void init(ReadStream is)(Code) | | |
isEOF | public boolean isEOF()(Code) | | Returns true on the EOF.
|
read | public int read() throws IOException(Code) | | Reads a character from a file, returning -1 on EOF.
|
read | public int read(byte[] buffer, int offset, int length) throws IOException(Code) | | Reads a buffer from a file, returning -1 on EOF.
|
read | public int read(char[] buffer, int offset, int length) throws IOException(Code) | | Reads a buffer from a file, returning -1 on EOF.
|
readOptionalLinefeed | public boolean readOptionalLinefeed() throws IOException(Code) | | Reads the optional linefeed character from a \r\n
|
seek | public long seek(long offset, int whence)(Code) | | |
setPosition | public boolean setPosition(long offset)(Code) | | Returns the current location in the file.
|
toString | public String toString()(Code) | | Converts to a string.
|
|
|